Interpolating date of birth and death precision.
This commit is contained in:
+5
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user