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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/express": patch
|
||||
---
|
||||
|
||||
fix: support express jsonParser middleware if used in the Express app
|
||||
@@ -97,6 +97,6 @@ function convertToStandardRequest(req: express.Request): StandardRequest {
|
||||
headers,
|
||||
method,
|
||||
// @ts-ignore
|
||||
body: req,
|
||||
body: req.body ? JSON.stringify(req.body) : req,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user