Skip to content

Commit

Permalink
workaround fix for broken disc-by-id endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdleveille committed Jun 24, 2024
1 parent b58074c commit 94dc1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/disc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const initDiscRoutes = (app: Elysia) => {
async ({ params: { id } }) => {
const disc = await Disc.findOne({ id }, projection);
if (!disc) throw new NotFoundError("Disc not found");
return disc;
return Object.assign({}, disc)["_doc"];
},
{
type: "application/json",
Expand Down

0 comments on commit 94dc1c7

Please sign in to comment.