diff --git a/app/models/user.rb b/app/models/user.rb index 41725ec6..669e36c1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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.