Skip to content

Commit

Permalink
Empty question_id if not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
gycgabriel committed Oct 14, 2023
1 parent 74f4e42 commit 03c5dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/collaboration-service/src/db/prisma-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function saveAttempt(room_id: string): Promise<void> {
},
});

const question_id = room!.question_id!;
const question_id = room!.question_id ?? "";

await prisma.attempt.create({
data: {
Expand Down

0 comments on commit 03c5dcb

Please sign in to comment.