forked from administration/panel
htrdhytdjfytuuytjf
parent
c30d75c0ed
commit
500f8b3e1c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue