Skip to content

Commit

Permalink
send 200 res on disc delete instead of 204
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Nov 6, 2024
1 parent f1c6de4 commit 1cfb7aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/disc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export const initDiscRoutes = (app: OpenAPIHono) => {
headers: authHeaderSchema
},
responses: {
204: {
200: {
content: { "application/json": { schema: resMessageSchema } },
description: "No Content"
description: "OK"
},
401: {
content: { "application/json": { schema: resMessageSchema } },
Expand All @@ -126,7 +126,7 @@ export const initDiscRoutes = (app: OpenAPIHono) => {
const { authorization } = c.req.valid("header");
assertRequestIsAuthorized(authorization);
await Disc.deleteAllDiscs();
return c.json({ message: "All discs deleted successfully" }, 204);
return c.json({ message: "All discs deleted successfully" }, 200);
}
);
};

0 comments on commit 1cfb7aa

Please sign in to comment.