diff --git a/actors.mjs b/actors.mjs index cddf7d1..da4f8b1 100644 --- a/actors.mjs +++ b/actors.mjs @@ -188,7 +188,11 @@ export async function interpolateProfiles(actorIdsOrNames, context, options = {} const transaction = await context.knex.transaction(); // clear existing interpolated data - const emptyProfile = Object.fromEntries(columns.filter((key) => !preservedKeys.includes(key)).map((key) => [key, null])); + const emptyProfile = { + ...Object.fromEntries(columns.filter((key) => !preservedKeys.includes(key)).map((key) => [key, null])), + date_of_birth_precision: 'day', + date_of_death_precision: 'day', + }; await context.knex('actors') .modify((modifyBuilder) => {