From 03c5dcb0e215cc6229753489d75760909d22c986 Mon Sep 17 00:00:00 2001 From: Gabriel Goh <77230723+gycgabriel@users.noreply.github.com> Date: Sat, 14 Oct 2023 22:49:13 +0800 Subject: [PATCH] Empty question_id if not supplied --- services/collaboration-service/src/db/prisma-db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/collaboration-service/src/db/prisma-db.ts b/services/collaboration-service/src/db/prisma-db.ts index 43da0fbd..c4dc7520 100644 --- a/services/collaboration-service/src/db/prisma-db.ts +++ b/services/collaboration-service/src/db/prisma-db.ts @@ -94,7 +94,7 @@ export async function saveAttempt(room_id: string): Promise { }, }); - const question_id = room!.question_id!; + const question_id = room!.question_id ?? ""; await prisma.attempt.create({ data: {