Restore automatic video batch continuation and prepare stable Comfy loading
This commit is contained in:
@@ -4,7 +4,7 @@ import { toggleStudioQueuePause } from '~/server/utils/studioQueue'
|
||||
export default defineEventHandler(async (event) => {
|
||||
const { owner } = assertLibraryOwner(event)
|
||||
const id = String(getRouterParam(event, 'id') || '')
|
||||
const body = await readBody<{ resume?: boolean }>().catch(() => ({} as { resume?: boolean }))
|
||||
const body = await readBody<{ resume?: boolean }>(event).catch(() => ({} as { resume?: boolean }))
|
||||
const queue = getShotQueue(owner, id)
|
||||
if (!queue) throw createError({ statusCode: 404, statusMessage: 'Queue not found' })
|
||||
const result = await toggleStudioQueuePause(owner, {
|
||||
|
||||
Reference in New Issue
Block a user