From 500f8b3e1c881140472beb817ed7e1bf57d3776b Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sun, 26 Nov 2023 13:17:18 +0000 Subject: [PATCH] htrdhytdjfytuuytjf --- lib/actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actions.ts b/lib/actions.ts index a560b42..df4b0df 100644 --- a/lib/actions.ts +++ b/lib/actions.ts @@ -128,7 +128,7 @@ export async function assignReportToCase(reportId: string, caseId?: string) { .collection("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;