Refactor trait and mood field names in FalukantService: Update database query conditions to use camelCase for traitId and moodId, ensuring consistency with model definitions and improving code readability.
This commit is contained in:
@@ -3066,13 +3066,13 @@ class FalukantService extends BaseService {
|
|||||||
{
|
{
|
||||||
model: PromotionalGiftCharacterTrait,
|
model: PromotionalGiftCharacterTrait,
|
||||||
as: 'characterTraits',
|
as: 'characterTraits',
|
||||||
where: { trait_id: { [Op.in]: user.character.traits.map(t => t.id) } },
|
where: { traitId: { [Op.in]: user.character.traits.map(t => t.id) } },
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: PromotionalGiftMood,
|
model: PromotionalGiftMood,
|
||||||
as: 'promotionalgiftmoods',
|
as: 'promotionalgiftmoods',
|
||||||
where: { mood_id: currentMoodId },
|
where: { moodId: currentMoodId },
|
||||||
required: false
|
required: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user