Skip to content

Commit

Permalink
fix server handler type error after tinyhttp upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Oct 7, 2024
1 parent 6dd0626 commit 2da5158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/raga-app/src/server/handlers/convertToMP3Handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export function getConvertToMP3RequestHandler(converter: AudioFileConverter): Ha
return async (
req: RequestWithBody<ConvertTrackToMP3RequestBody>,
res: Response,
next: NextFunction,
next: NextFunction | undefined,
) => {
await json()(req, res, (err) => {
if (err) {
next(err);
next?.(err);
return;
}
});
Expand Down

0 comments on commit 2da5158

Please sign in to comment.