Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-genesys: fix conversations default param bug
In Python, default parameters are evaluated once when the function definition is executed. This means that a default param of `datetime.now(tz=UTC)` is only evaluated when the program starts up, and that same value is used for each subsequent function call. Meaning that within the connector, `_perform_conversation_job` was using a fixed end date and not incrementing it over time. Now, a default value of `None` is used in `_perform_conversation_job` to indicate that the current time should be used as the end date.
- Loading branch information