Skip to content

Commit

Permalink
fix: handle sql null equalities (#9884)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick authored Jun 26, 2024
1 parent a966b0a commit 87363fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const updateSmartGroupTitle = async (reflectionGroupId: string, smartTitle: stri
.updateTable('RetroReflectionGroup')
.set({
smartTitle,
title: sql`CASE WHEN "smartTitle" = "title" THEN ${smartTitle} ELSE "title" END`
title: sql`CASE WHEN "smartTitle" = "title" OR "title" IS NULL THEN ${smartTitle} ELSE "title" END`
})
.where('id', '=', reflectionGroupId)
.execute()
Expand Down

0 comments on commit 87363fa

Please sign in to comment.