Skip to content

Commit

Permalink
Update in accordance with auto date
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Oct 25, 2024
1 parent 22d53a5 commit 66ebdab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/SIL.AppBuilder.Portal/common/workflow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,17 +325,13 @@ export class Workflow {
.reduce((p, c) => p.concat(c), [])
.filter((u, i, a) => a.indexOf(u) === i);

const timestamp = new Date();

return DatabaseWrites.userTasks.createMany({
data: uids.map((u) => ({
UserId: u,
ProductId: this.productId,
ActivityName: Workflow.stateName(this.currentState),
Status: Workflow.stateName(this.currentState),
Comment: comment ?? null,
DateCreated: timestamp,
DateUpdated: timestamp
Comment: comment ?? null
}))
});
}
Expand Down

0 comments on commit 66ebdab

Please sign in to comment.