diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-07 12:10:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-07 12:10:03 +0300 |
commit | aeb70fd397271bef3857095468172e46a2965bc1 (patch) | |
tree | 8d43487030dd1482a5061570dfb979bd83d0124e /app/services/personal_access_tokens | |
parent | f23de8014c9104ab62c68e88b4c8e924469cd996 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/personal_access_tokens')
-rw-r--r-- | app/services/personal_access_tokens/last_used_service.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index 6fc3110a70b..3b075364458 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -24,12 +24,7 @@ module PersonalAccessTokens return true if last_used.nil? - if Feature.enabled?(:update_personal_access_token_usage_information_every_10_minutes) && - last_used <= 10.minutes.ago - return true - end - - last_used <= 1.day.ago + last_used <= 10.minutes.ago end end end |