Skip to content

Commit c4ba9a9

Browse files
committed
feat: 1103 confirmation demande agrement (retours revue)
1 parent b1585e6 commit c4ba9a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/backend/src/usagers/agrements/agrements.controller.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ export const AgrementController = {
6767
const agrementId = Number(req.validatedParams!.agrementId);
6868
const { statut } = req.validatedBody!;
6969
try {
70-
const success = await AgrementService.updateStatut({
70+
await AgrementService.updateStatut({
7171
agrementId,
7272
statut,
7373
usagerUserId,
7474
});
75-
if (!success)
76-
throw new AppError("Agrement not found or update failed", {
77-
statusCode: 404,
78-
});
7975
res.json({ success: true });
8076
} catch (error) {
8177
log.w("PATCH statut error", error);

0 commit comments

Comments
 (0)