Skip to content

Commit

Permalink
Prevent null crash in colab room update
Browse files Browse the repository at this point in the history
  • Loading branch information
gycgabriel committed Oct 31, 2023
1 parent ad67536 commit 58a66cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/collaboration-service/src/db/prisma-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export async function updateRoomText(
room_id: string,
text: string
): Promise<void> {
if (room_id == null) return;
await prisma.room.update({
where: {
room_id: room_id,
Expand Down

0 comments on commit 58a66cc

Please sign in to comment.