From 7a051aefa611864a3bfe7ed84b41399db3ae23b8 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 18 Sep 2026 22:42:54 +0200 Subject: [PATCH] Interpolating date of birth and death precision. --- actors.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) => {