Skip to content

Commit

Permalink
fix(productions): fix route name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 9, 2024
1 parent 8a6ab61 commit 5464f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/productions/patch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type productionType = Static<typeof productionSchema>;
const productionsPutRoutes = new Elysia();

productionsPutRoutes.patch(
"/contribute_productions/:id",
"/production/:id",
async ({ params: { id }, body, error }) => {
if (body.status && ["ongoing", "treated"].includes(body.status)) {
body.treated_at = new Date();
Expand Down Expand Up @@ -50,6 +50,7 @@ productionsPutRoutes.patch(

const responseObjectContribution = {
id: updatedObjectContribution.id,
objectId: updatedObjectContribution.objectId,
name: updatedObjectContribution.name,
email: updatedObjectContribution.email,
status: updatedObjectContribution.status,
Expand Down

0 comments on commit 5464f0c

Please sign in to comment.