Skip to content

Commit

Permalink
HPC-10000: Remove null from planEntityIds codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Pl217 committed Dec 30, 2024
1 parent c63465d commit 878b6c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/db/models/planEntityVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ export const PLAN_ENTITY_VERSION_ID = brandedType<number, PlanEntityVersionId>(
);

const PLAN_ENTITY_VERSION_REF = t.partial({
/**
* TODO: Some values in the database seem to have null values in this
* array, which is problematic. We need to have stricter validation of
* data being stored here, repair existing values, and then remove null
* from this type
*/
planEntityIds: t.array(t.union([t.null, PLAN_ENTITY_ID])),
planEntityIds: t.array(PLAN_ENTITY_ID),
entityPrototypeId: ENTITY_PROTOTYPE_ID,
});

Expand Down

0 comments on commit 878b6c9

Please # to comment.