feat: Ability to customize the online presence duration (#4385)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user