Fix poster creation of movie entries

This commit is contained in:
Zoe Roux 2025-03-01 19:21:53 +01:00
parent 9aa7815f57
commit 6a30173628

View File

@ -90,6 +90,7 @@ export const insertEntries = async (
language: "extra", language: "extra",
name: seed.name, name: seed.name,
description: null, description: null,
poster: undefined,
}; };
} }
@ -98,6 +99,10 @@ export const insertEntries = async (
pk: ret[i].pk, pk: ret[i].pk,
language: lang, language: lang,
...tr, ...tr,
poster:
seed.kind === "movie"
? processOptImage((tr as any).poster)
: undefined,
})); }));
}); });
await tx await tx