diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 15:08:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-14 15:08:03 +0300 |
commit | 61a82b8ec062d6f122dadd38783c7754cef7ce2b (patch) | |
tree | 071d1ded4f507d77bac97156aa1fa85c95c0cba5 /app/models/awareness_session.rb | |
parent | 3ed578edf525bce3167860b84f6b43bab5065cf5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/awareness_session.rb')
-rw-r--r-- | app/models/awareness_session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/awareness_session.rb b/app/models/awareness_session.rb index a84a3454a27..cca69e38b6f 100644 --- a/app/models/awareness_session.rb +++ b/app/models/awareness_session.rb @@ -64,7 +64,7 @@ class AwarenessSession # rubocop:disable Gitlab/NamespacedClass with_redis do |redis| redis.pipelined do |pipeline| - pipeline.sadd(user_key, id_i) + pipeline.sadd?(user_key, id_i) pipeline.expire(user_key, USER_LIFETIME.to_i) pipeline.zadd(users_key, timestamp.to_f, user.id) @@ -84,7 +84,7 @@ class AwarenessSession # rubocop:disable Gitlab/NamespacedClass with_redis do |redis| redis.pipelined do |pipeline| - pipeline.srem(user_key, id_i) + pipeline.srem?(user_key, id_i) pipeline.zrem(users_key, user.id) end |