mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 23:32:53 +00:00
hotfix
This commit is contained in:
parent
a2d7f6d9a3
commit
89bad35ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ class User < ApplicationRecord
|
|||
return false if pending_deletion?
|
||||
return true unless red?
|
||||
|
||||
last_audit = trust_level_audit_logs.where(new_level: :red).order(created_at: :desc).first
|
||||
last_audit = trust_level_audit_logs.where(new_trust_level: :red).order(created_at: :desc).first
|
||||
return true unless last_audit
|
||||
|
||||
last_audit.created_at <= 365.days.ago
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue