Skip to content

Commit

Permalink
fix: redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Oct 31, 2024
1 parent 746416f commit 46a63a8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions functions/src/v3/domain/updateStatus.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { WorkflowStatus } from "../../model";
import { StatusEnum } from "../../utils/document-change";

export const makeTicketStepAsDone = (
status: WorkflowStatus
): { status: WorkflowStatus } => {
const makeStepAsDone = (
step: keyof WorkflowStatus,
previousStatus: WorkflowStatus
) => {
return {
status: {
...status,
code: StatusEnum.DONE,
...previousStatus,
[step]: StatusEnum.DONE,
},
};
};
export const makeTicketStepAsDone = (
status: WorkflowStatus
): { status: WorkflowStatus } => makeStepAsDone("code", status);

0 comments on commit 46a63a8

Please sign in to comment.