Cleanup styles

This commit is contained in:
Zoe Roux
2026-02-11 13:37:45 +01:00
parent 1e17f75aaf
commit 69a6bff197
14 changed files with 67 additions and 38 deletions
+6 -2
View File
@@ -22,7 +22,7 @@ import type { SeedMovie } from "~/models/movie";
import type { SeedSerie } from "~/models/serie";
import type { Original } from "~/models/utils";
import { record } from "~/otel";
import { getYear } from "~/utils";
import { getYear, uniq } from "~/utils";
import { enqueueOptImage, flushImageQueue, type ImageTask } from "../images";
type Show = typeof shows.$inferInsert;
@@ -68,7 +68,11 @@ export const insertShow = record(
column: sql`${shows.original}['logo']`,
}),
};
const ret = await insertBaseShow(tx, { ...show, original: orig });
const ret = await insertBaseShow(tx, {
...show,
genres: uniq(show.genres),
original: orig,
});
if ("status" in ret) return ret;
const trans: ShowTrans[] = Object.entries(translations).map(