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,
|
||||
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
|
||||
},
|
||||
{
|
||||
model: PromotionalGiftMood,
|
||||
as: 'promotionalgiftmoods',
|
||||
where: { mood_id: currentMoodId },
|
||||
where: { moodId: currentMoodId },
|
||||
required: false
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user