fix: support express jsonParser middleware if used in the Express app (#309)

* fix: support express jsonParser middleware if used in the Express app

* Create sixty-windows-run.md

---------

Co-authored-by: Eric Allam <eallam@icloud.com>
This commit is contained in:
Liran Tal
2023-08-11 16:23:29 +03:00
committed by GitHub
parent 7daa82fc7a
commit 871d6e1d52
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/express": patch
---
fix: support express jsonParser middleware if used in the Express app
+1 -1
View File
@@ -97,6 +97,6 @@ function convertToStandardRequest(req: express.Request): StandardRequest {
headers,
method,
// @ts-ignore
body: req,
body: req.body ? JSON.stringify(req.body) : req,
});
}