Skip to content

Commit

Permalink
set correct report id
Browse files Browse the repository at this point in the history
  • Loading branch information
goemen committed Apr 18, 2024
1 parent f8e989b commit bbc9d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/v1/services/report-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ const reportService = {
throw new Error('Only draft reports can be published');
}

let reportId = report_to_publish.user_id;
let reportId = report_to_publish.report_id;
await prisma.$transaction(async (tx) => {
// Check if there is an existing published report that
// corresponds to the same company_id and reporting year as
Expand Down

0 comments on commit bbc9d1c

Please sign in to comment.