Appease the dog overlords

This commit is contained in:
Karina Kwiatek 2022-06-26 13:26:48 +02:00 committed by Karina Kwiatek
parent 3247d1c746
commit 34c747ebf7
1 changed files with 2 additions and 2 deletions

View File

@ -234,9 +234,9 @@ class User < ApplicationRecord
end
def unban
UserBan.current.where(user_id: self.id).update_all(
bans.current.update(
# -1s to account for flakyness with timings in tests
expires_at: DateTime.now - 1.second
expires_at: DateTime.now.utc - 1.second
)
end