mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #297 from Hexastack/296-bug-persistence-contextvars-are-not-saved-in-subscriber
fix(api): persistence contextVars
This commit is contained in:
commit
7d896b4ecd
@ -183,8 +183,10 @@ export class ConversationService extends BaseService<
|
||||
}
|
||||
|
||||
//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,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user