Handle missing extraPngInfo field in queue (#1223)

This commit is contained in:
Chenlei Hu
2024-10-11 12:16:35 -04:00
committed by GitHub
parent f599c9bcb8
commit 419009424b
4 changed files with 16 additions and 10 deletions

View File

@@ -116,7 +116,8 @@ const zExtraPngInfo = z
.passthrough()
const zExtraData = z.object({
extra_pnginfo: zExtraPngInfo,
/** extra_pnginfo can be missing is backend execution gets a validation error. */
extra_pnginfo: zExtraPngInfo.optional(),
client_id: z.string()
})
const zOutputsToExecute = z.array(zNodeId)