Collapsed collection actions now move, rename, delete, and rerun every part so chains stay together. Identity mode follows the v2u3 Ref2VA picture wiring. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
449 B
TypeScript
14 lines
449 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
const library = publicLibrary(event)
|
|
try {
|
|
const { owner } = assertLibraryOwner(event)
|
|
const folderId = library.folders.find(folder => folder.unlocked)?.id
|
|
if (folderId) await importMissingComfyVideos(owner, folderId)
|
|
await ensureClipThumbnails(owner)
|
|
await sweepOwnerExtensionStills(owner)
|
|
} catch {
|
|
return publicLibrary(event)
|
|
}
|
|
return publicLibrary(event)
|
|
})
|