mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-21 09:35:22 -04:00
use proper null check for creatorId instead of unreachable nullish coalescing
This commit is contained in:
@@ -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) },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user