Keep remaining multi-shot clips on a Queue page so prompts can be edited between shots, with process-next or overnight run-all.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { listShotQueues, summarizeQueue } from '~/server/utils/shotQueue'
|
||||
|
||||
export default defineEventHandler((event) => {
|
||||
const { owner } = assertLibraryOwner(event)
|
||||
const queues = listShotQueues(owner).map(summarizeQueue)
|
||||
const pendingCount = queues.reduce((sum, queue) => (
|
||||
queue.status === 'complete' ? sum : sum + queue.pendingCount
|
||||
), 0)
|
||||
return { queues, pendingCount }
|
||||
})
|
||||
Reference in New Issue
Block a user