Fix video generate 500 from a leftover promptRaw log.
The pre/prompt/post split renamed the variable but one console.info still used the old name, which crashed POST /api/generate on xAIGen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -5923,7 +5923,7 @@ async function sendStillToBackup(still: Pick<LibraryStill, 'id'>) {
|
||||
backupBusyId.value = still.id
|
||||
try {
|
||||
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
|
||||
toast('Sent to Backup as a hidden input.')
|
||||
toast('Sent to Backup')
|
||||
} catch (error: any) {
|
||||
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
||||
} finally {
|
||||
|
||||
+1
-1
@@ -777,7 +777,7 @@ async function sendFocusedToBackup() {
|
||||
backupBusy.value = true
|
||||
try {
|
||||
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
|
||||
toast('Sent to Backup as a hidden input.')
|
||||
toast('Sent to Backup')
|
||||
} catch (error: any) {
|
||||
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
||||
} finally {
|
||||
|
||||
@@ -218,7 +218,7 @@ export default defineEventHandler(async (event) => {
|
||||
stillId: still?.id || '',
|
||||
postedStillId,
|
||||
workflow,
|
||||
promptChars: promptRaw.length,
|
||||
promptChars: promptMid.length,
|
||||
textToVideo
|
||||
})
|
||||
const referenceStillIds: Array<string | null> = [null, null, null, null]
|
||||
|
||||
Reference in New Issue
Block a user