mirror of
https://github.com/hexastack/hexabot
synced 2025-04-02 12:21:19 +00:00
Merge pull request #861 from Hexastack/fix/ctx-vars-update
fix: subscriber ctx var update logic
This commit is contained in:
commit
fd709ff6d4
@ -124,9 +124,8 @@ export class ConversationService extends BaseService<
|
|||||||
`Adding context var to subscriber: ${capture.context_var} = ${contextValue}`,
|
`Adding context var to subscriber: ${capture.context_var} = ${contextValue}`,
|
||||||
);
|
);
|
||||||
profile.context.vars[capture.context_var] = contextValue;
|
profile.context.vars[capture.context_var] = contextValue;
|
||||||
} else {
|
|
||||||
convo.context!.vars[capture.context_var] = contextValue;
|
|
||||||
}
|
}
|
||||||
|
convo.context!.vars[capture.context_var] = contextValue;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user