Compare commits

..
2 Commits
Author SHA1 Message Date
DebaucheryLibrarian 7df69021ea 1.3.7 2026-09-18 22:43:02 +02:00
DebaucheryLibrarian 7a051aefa6 Interpolating date of birth and death precision. 2026-09-18 22:42:54 +02:00
3 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -188,7 +188,11 @@ export async function interpolateProfiles(actorIdsOrNames, context, options = {}
const transaction = await context.knex.transaction(); const transaction = await context.knex.transaction();
// clear existing interpolated data // 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') await context.knex('actors')
.modify((modifyBuilder) => { .modify((modifyBuilder) => {
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.3.6", "version": "1.3.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.3.6", "version": "1.3.7",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.25.7", "@babel/cli": "^7.25.7",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "traxxx-common", "name": "traxxx-common",
"version": "1.3.6", "version": "1.3.7",
"description": "Common utilities for traxxx core and web.", "description": "Common utilities for traxxx core and web.",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {