Commit 3d61fe8f authored by bendanzhentan's avatar bendanzhentan

fix: string encode error TS2345

parent bf530470
......@@ -336,7 +336,8 @@ export abstract class BaseServiceV2<
app.use(
bodyParser.json({
verify: (req, res, buf, encoding) => {
;(req as any).rawBody = buf?.toString(encoding || 'utf8') || ''
;(req as any).rawBody =
buf?.toString((encoding as BufferEncoding) || 'utf8') || ''
},
...(this.params.bodyParserParams ?? {}),
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment