fix(api): persistence contextVars

This commit is contained in:
yassinedorbozgithub 2024-10-29 19:12:09 +01:00
parent 534e099662
commit 89230b2e82

View File

@ -183,8 +183,10 @@ export class ConversationService extends BaseService<
} }
//TODO: add check if nothing changed don't update //TODO: add check if nothing changed don't update
const criteria =
typeof convo.sender === 'object' ? convo.sender.id : convo.sender;
await this.subscriberService.updateOne(convo.sender, { await this.subscriberService.updateOne(criteria, {
context: profile.context, context: profile.context,
}); });