Implement staff display

This commit is contained in:
Zoe Roux
2026-03-28 11:18:56 +01:00
parent 85813129ce
commit 6c3616ed2f
12 changed files with 326 additions and 19 deletions
+10 -8
View File
@@ -43,14 +43,16 @@ export const insertStaff = record(
staffPk: ret.find((y) => y.slug === x.staff.slug)!.pk,
kind: x.kind,
order: i,
character: {
...x.character,
image: enqueueOptImage(imgQueue, {
url: x.character.image,
table: roles,
column: sql`${roles.character}['image']`,
}),
},
character: x.character
? {
...x.character,
image: enqueueOptImage(imgQueue, {
url: x.character.image,
table: roles,
column: sql`${roles.character}['image']`,
}),
}
: null,
}));
await flushImageQueue(tx, imgQueue, -200);