Fix lots of stuff

This commit is contained in:
Zoe Roux
2025-06-07 18:59:00 +02:00
parent 489336c77a
commit 2f6943cd6f
5 changed files with 31 additions and 20 deletions
+2 -2
View File
@@ -103,8 +103,8 @@ export const processImages = async () => {
`);
await tx.delete(mqueue).where(eq(mqueue.id, item.id));
} catch (err) {
console.error("Failed to download image", img.url, err);
} catch (err: any) {
console.error("Failed to download image", img.url, err.message);
await tx
.update(mqueue)
.set({ attempt: sql`${mqueue.attempt}+1` })