Skip to content

Commit

Permalink
chore: prettier!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Oct 9, 2023
1 parent 340ca36 commit 62e0ef5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/functions/form-submissions-handler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ const getFormHandler = function ({ functionsRegistry }) {

export const createFormSubmissionHandler = function ({ functionsRegistry, siteUrl }) {
return async function formSubmissionHandler(req, res, next) {
if (req.url.startsWith('/.netlify/') ||req.method !== 'POST' || (await functionsRegistry.getFunctionForURLPath(req.url, req.method))) return next()
if (
req.url.startsWith('/.netlify/') ||
req.method !== 'POST' ||
(await functionsRegistry.getFunctionForURLPath(req.url, req.method))
)
return next()

const fakeRequest = new Readable({
read() {
Expand Down

0 comments on commit 62e0ef5

Please sign in to comment.