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")
|
.collection<ReportDocument>("safety_reports")
|
||||||
.updateOne(
|
.updateOne(
|
||||||
{ _id: reportId },
|
{ _id: reportId },
|
||||||
caseId
|
(caseId
|
||||||
? {
|
? {
|
||||||
$set,
|
$set,
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ export async function assignReportToCase(reportId: string, caseId?: string) {
|
||||||
$unset: {
|
$unset: {
|
||||||
case_id: 1,
|
case_id: 1,
|
||||||
},
|
},
|
||||||
}
|
}) as never // fuck you
|
||||||
);
|
);
|
||||||
|
|
||||||
return $set;
|
return $set;
|
||||||
|
|
Loading…
Reference in New Issue