Skip to content

Commit cb8d2a2

Browse files
vikaivVictoria Ivanova
andauthored
fix setting new responsible for report (#19)
Co-authored-by: Victoria Ivanova <victoria.i@ati.su>
1 parent 4b647d7 commit cb8d2a2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/src/api/reports/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export type CreateReportRequest = {
7777
export type UpdateReportRequest = {
7878
title: string | null;
7979
status: ReportStatuses | null;
80+
responsibleUserId: string | null;
8081
};
8182

8283
export type SearchResponse = {

frontend/src/store/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const updateReportFx = createEffect(
7171
const payload = {
7272
title: report.title,
7373
status: report.status,
74-
responsible: report.responsibleId,
74+
responsibleUserId: report.responsibleId,
7575
};
7676
return await updateReport(payload, report.id);
7777
}

0 commit comments

Comments
 (0)