Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav Gautam authored and Abhinav Gautam committed Oct 15, 2024
1 parent edcdbb2 commit 1261cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/queue-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ router.post("/pdf", async (req: Request, res: Response) => {
throw new Error("Some Error Occurred While Queueing")
}
} catch (err ) {
res.json({
res.status(500).json({
success: false,
message: err.message,
error: err
Expand Down

0 comments on commit 1261cef

Please sign in to comment.