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.
This commit is contained in:
@@ -2982,7 +2982,7 @@ class FalukantService extends BaseService {
|
|||||||
}) : [],
|
}) : [],
|
||||||
relationshipMoodIds.length > 0 ? Mood.findAll({
|
relationshipMoodIds.length > 0 ? Mood.findAll({
|
||||||
where: { id: { [Op.in]: relationshipMoodIds } },
|
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 firstNameMap = new Map([...firstNames, ...childFirstNames].map(fn => [fn.id, fn.name]));
|
||||||
const lastNameMap = new Map(lastNames.map(ln => [ln.id, ln.name]));
|
const lastNameMap = new Map(lastNames.map(ln => [ln.id, ln.name]));
|
||||||
const titleMap = new Map(titles.map(t => [t.id, t.labelTr]));
|
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();
|
const traitsMap = new Map();
|
||||||
traits.forEach(t => {
|
traits.forEach(t => {
|
||||||
if (!traitsMap.has(t.characterId)) {
|
if (!traitsMap.has(t.characterId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user