Allow no translations for seasons & entries

This commit is contained in:
Zoe Roux
2026-01-12 09:28:09 +01:00
parent 4dc0dcb9b3
commit cc60b429b4
8 changed files with 18 additions and 16 deletions
@@ -121,6 +121,7 @@ export const insertEntries = record(
}));
});
await flushImageQueue(tx, imgQueue, 0);
if (trans.length === 0) return ret;
await tx
.insert(entryTranslations)
.select(unnestValues(trans, entryTranslations))
@@ -64,6 +64,7 @@ export const insertSeasons = record(
})),
);
await flushImageQueue(tx, imgQueue, -10);
if (trans.length === 0) return ret;
await tx
.insert(seasonTranslations)
.select(unnestValues(trans, seasonTranslations))