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