1
0
Fork 0

htrdhytdjfytuuytjf

main
Paul Makles 2023-11-26 13:17:18 +00:00
parent c30d75c0ed
commit 500f8b3e1c
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ export async function assignReportToCase(reportId: string, caseId?: string) {
.collection<ReportDocument>("safety_reports")
.updateOne(
{ _id: reportId },
caseId
(caseId
? {
$set,
}
@ -136,7 +136,7 @@ export async function assignReportToCase(reportId: string, caseId?: string) {
$unset: {
case_id: 1,
},
}
}) as never // fuck you
);
return $set;