feat: Ability to customize the online presence duration (#4385)

This commit is contained in:
Sojan Jose 2022-04-05 15:20:34 +05:30 committed by GitHub
parent cd5646b4b9
commit 9a8a0bd865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
module OnlineStatusTracker module OnlineStatusTracker
PRESENCE_DURATION = 20.seconds # NOTE: You can customise the environment variable to keep your agents/contacts as online for longer
PRESENCE_DURATION = ENV.fetch('PRESENCE_DURATION', 20).to_i.seconds
# presence : sorted set with timestamp as the score & object id as value # presence : sorted set with timestamp as the score & object id as value