Skip to content

Commit

Permalink
Ensure i is string
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Dec 3, 2024
1 parent add0c82 commit 2067cd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ingest/src/steps/5-lp-parts-embed-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export async function lpPartsEmbedStart({
await prisma.ingestLessonPlanPart.updateMany({
where: {
id: {
in: lessonPlanPartIds.filter((i) => !!i),
in: lessonPlanPartIds.filter(
(i): i is string => typeof i === "string",
),
},
},
data: {
Expand Down

0 comments on commit 2067cd7

Please sign in to comment.