From 3b983a0db5e26a56a7b497cfe08ea8e1ab971a4f Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 12 Jan 2026 11:24:56 +0100 Subject: [PATCH] Update attribute mapping in FalukantService for mood data retrieval - Changed mood attribute from 'labelTr' to 'tr' in the mood query to align with updated data structure. - Adjusted mood mapping to reflect the new attribute, ensuring consistency in data handling. --- backend/services/falukantService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/falukantService.js b/backend/services/falukantService.js index aa9375d..be772dc 100644 --- a/backend/services/falukantService.js +++ b/backend/services/falukantService.js @@ -2982,7 +2982,7 @@ class FalukantService extends BaseService { }) : [], relationshipMoodIds.length > 0 ? Mood.findAll({ where: { id: { [Op.in]: relationshipMoodIds } }, - attributes: ['id', 'labelTr'] + attributes: ['id', 'tr'] }) : [] ]); @@ -2990,7 +2990,7 @@ class FalukantService extends BaseService { const firstNameMap = new Map([...firstNames, ...childFirstNames].map(fn => [fn.id, fn.name])); const lastNameMap = new Map(lastNames.map(ln => [ln.id, ln.name])); const titleMap = new Map(titles.map(t => [t.id, t.labelTr])); - const moodMap = new Map(moods.map(m => [m.id, m.labelTr])); + const moodMap = new Map(moods.map(m => [m.id, m.tr])); const traitsMap = new Map(); traits.forEach(t => { if (!traitsMap.has(t.characterId)) {