mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Use use case for User#unban
This commit is contained in:
parent
0659ff1f9a
commit
a9392dad53
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def unban
|
||||
self.bans.current.update!(expires_at: DateTime.now)
|
||||
UseCase::User::Unban.call(id)
|
||||
end
|
||||
|
||||
# Bans a user.
|
||||
|
|
Loading…
Reference in a new issue