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:
Towsty
2026-09-01 20:18:25 -05:00
co-authored by Cursor
parent 7bcd23fcc5
commit e248eb26d8
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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 {
+1 -1
View File
@@ -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]