mirror of
https://github.com/hexastack/hexabot
synced 2024-11-29 23:51:27 +00:00
fix(api): persistence contextVars
This commit is contained in:
parent
534e099662
commit
89230b2e82
@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user