use proper null check for creatorId instead of unreachable nullish coalescing

This commit is contained in:
Marcello Fitton
2026-03-03 12:48:46 -08:00
parent 0231e4c5dc
commit 74da87a38c
+1 -1
View File
@@ -52,7 +52,7 @@ const EmbedConfig = {
data?.message_limit,
"message_limit"
),
createdBy: Number(creatorId) ?? null,
createdBy: creatorId != null ? Number(creatorId) : null,
workspace: {
connect: { id: Number(data.workspace_id) },
},