remoteStorage OAuth #109

Merged
raucao merged 24 commits from feature/rs-oauth into master 2023-08-04 08:55:29 +00:00
Showing only changes of commit b0bfc290c4 - Show all commits

View File

@ -30,8 +30,7 @@ class RemoteStorageAuthorization < ApplicationRecord
def delete_token_from_redis
key = "rs:authorizations:#{user.address}:#{token}"
# You can't delete multiple members of a set with Redis 2
redis.smembers(key).each { |auth| redis.srem(key, auth) }
redis.srem? key, redis.smembers(key)
end
private