Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
feat: include user id on change status
Browse files Browse the repository at this point in the history
  • Loading branch information
NotHydra committed Feb 9, 2024
1 parent 3474bd4 commit d0d82e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/model/history/history.rest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POST http://localhost:3001/api/history
Content-Type: application/json

{
"subTrashBinId": 2,
"subTrashBinId": 21,
"maxCapacity": 150.00,
"currentCapacity": 100.00
}
Expand Down
3 changes: 2 additions & 1 deletion apps/api/src/model/report/report.rest
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ POST http://localhost:3001/api/report
Content-Type: application/json

{
"trashBinId": 2,
"trashBinId": 12,
"nik": "64711092301923",
"name": "Budi Santoso",
"phoneNumber": "6281234567891",
Expand All @@ -40,6 +40,7 @@ PUT http://localhost:3001/api/report/1/status
Content-Type: application/json

{
"userId": 1,
"status": "notResponded"
}

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/model/trash/trash.rest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ POST http://localhost:3001/api/trash
Content-Type: application/json

{
"subTrashBinId": 2
"subTrashBinId": 23
}

###
Expand Down
3 changes: 3 additions & 0 deletions libs/common/src/dto/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export class ReportCreateDTO {
export class ReportUpdateDTO {}

export class ReportUpdateStatusDTO {
@IsNumber()
userId: number;

@IsEnum(Status)
status: $Enums.Status;
}

0 comments on commit d0d82e5

Please sign in to comment.