Pause the queue after the current clip for real, and carry global locks plus labeled permanence stills through generate and shot prompts.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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 }))
|
||||
return toggleStudioQueuePause(owner, {
|
||||
resume: body?.resume,
|
||||
jobId: id
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,10 @@
|
||||
import { toggleStudioQueuePause } from '~/server/utils/studioQueue'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const { owner } = assertLibraryOwner(event)
|
||||
const body = await readBody<{ resume?: boolean; jobId?: string }>().catch(() => ({} as { resume?: boolean; jobId?: string }))
|
||||
return toggleStudioQueuePause(owner, {
|
||||
resume: body?.resume,
|
||||
jobId: body?.jobId ? String(body.jobId) : undefined
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user