Skip to content

Commit

Permalink
Add current user to update audit fields (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
afwilcox authored Jan 4, 2024
1 parent 07bc4cd commit ae51d88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/v1/complaint/complaint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,10 @@ export class ComplaintService {
"UpdateComplaintDto"
);

//set the audit field
complaintTable.update_user_id = idir;
console.log(complaintTable);

const complaintUpdateResult = await this.complaintsRepository
.createQueryBuilder("complaint")
.update()
Expand Down

0 comments on commit ae51d88

Please sign in to comment.