Merge pull request #861 from Hexastack/fix/ctx-vars-update
Some checks failed
Build and Push Docker API Image / build-and-push (push) Has been cancelled
Build and Push Docker Base Image / build-and-push (push) Has been cancelled
Build and Push Docker UI Image / build-and-push (push) Has been cancelled

fix: subscriber ctx var update logic
This commit is contained in:
Med Marrouchi 2025-03-25 15:02:53 +01:00 committed by GitHub
commit fd709ff6d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,9 +124,8 @@ export class ConversationService extends BaseService<
`Adding context var to subscriber: ${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;
});
}