Skip to content

Commit 094a05f

Browse files
Fix webhook check
Co-authored-by: Abhimanyu Singh Gaur <12651351+abhimanyusinghgaur@users.noreply.github.com>
1 parent 5857673 commit 094a05f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/script-to-express.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ export function scriptToExpress(source: string) {
2020
app.post("/graphql-worker", async (req, res, next) => {
2121
try {
2222
const result = await runner(bodyToEvent(req.body));
23-
if(result === undefined) {
23+
if(result === undefined && req.body.resolver !== '$webhook') {
2424
res.status(400)
25-
if(req.body.resolver === '$webhook') {
26-
res.status(200)
27-
}
2825
}
2926
res.json(result)
3027
} catch(e) {

0 commit comments

Comments
 (0)