Skip to content

Commit

Permalink
fix(CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitguigal committed Mar 6, 2025
1 parent dc22cd2 commit 211dc40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion back/src/forms/__tests__/form-converter.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ describe("expandFormFromDb", () => {
wasteAcceptationStatus: null,
wasteRefusalReason: null,
receivedAt: null,
receivedBy: null
receivedBy: null,
signedAt: null
},
destination: {
cap: "CAP",
Expand Down
14 changes: 12 additions & 2 deletions back/src/forms/resolvers/mutations/signTransportForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,19 @@ const signatures: Partial<
const transporterNumberPlate =
args.input.transporterNumberPlate ?? transporter?.transporterNumberPlate;

const transporterTransportMode =
args.input.transporterTransportMode ??
transporter?.transporterTransportMode;

const transporterSchema = transporterSchemaFn({ signingTransporterOrgId });

const receiptFields = await getFormReceiptField(transporter);

await transporterSchema.validate({
...transporter,
transporterNumberPlate
transporterNumberPlate,
transporterTransportMode,
...receiptFields
});

const formUpdateInput: Prisma.FormUpdateInput = {
Expand All @@ -359,7 +367,9 @@ const signatures: Partial<
transporters: {
updateMany: {
data: {
transporterNumberPlate
transporterNumberPlate,
transporterTransportMode,
...receiptFields
},
where: { number: 1 }
}
Expand Down
2 changes: 1 addition & 1 deletion front/src/Apps/Dashboard/dashboardServices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ describe("dashboardServices", () => {
}
},
permissions,
"actTab"
"toCollectTab"
);
expect(result).toEqual(SIGNER);
});
Expand Down

0 comments on commit 211dc40

Please sign in to comment.