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
|
backupBusyId.value = still.id
|
||||||
try {
|
try {
|
||||||
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
|
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) {
|
} catch (error: any) {
|
||||||
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
+1
-1
@@ -777,7 +777,7 @@ async function sendFocusedToBackup() {
|
|||||||
backupBusy.value = true
|
backupBusy.value = true
|
||||||
try {
|
try {
|
||||||
await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' })
|
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) {
|
} catch (error: any) {
|
||||||
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
toast(error?.data?.statusMessage || 'Could not send that still to Backup')
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export default defineEventHandler(async (event) => {
|
|||||||
stillId: still?.id || '',
|
stillId: still?.id || '',
|
||||||
postedStillId,
|
postedStillId,
|
||||||
workflow,
|
workflow,
|
||||||
promptChars: promptRaw.length,
|
promptChars: promptMid.length,
|
||||||
textToVideo
|
textToVideo
|
||||||
})
|
})
|
||||||
const referenceStillIds: Array<string | null> = [null, null, null, null]
|
const referenceStillIds: Array<string | null> = [null, null, null, null]
|
||||||
|
|||||||
Reference in New Issue
Block a user