Stop empty Comfy blips from freezing the LoRA cache timestamp, and refresh the picker list from Comfy on each poll. Engine tagging (flux/krea) and xaigen platform filtering stay as they were. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
286 B
TypeScript
11 lines
286 B
TypeScript
import { listStudioLoras } from '~/server/utils/loras'
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const fresh = String(getQuery(event).fresh || '') === '1'
|
|
const listed = await listStudioLoras({ fresh })
|
|
return {
|
|
image: listed.image,
|
|
video: listed.video
|
|
}
|
|
})
|