feat: Ability to customize the online presence duration (#4385)
This commit is contained in:
parent
cd5646b4b9
commit
9a8a0bd865
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue