mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-22 23:22:27 -04:00
Allow no translations for seasons & entries
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user