Interpolating date of birth and death precision.

This commit is contained in:
2026-09-18 22:42:54 +02:00
parent ec0812ad9d
commit 7a051aefa6
+5 -1
View File
@@ -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) => {