discourse/app/jobs/scheduled/clean_up_api_keys_max_life.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
185 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
module Jobs
class CleanUpApiKeysMaxLife < ::Jobs::Scheduled
every 1.day
def execute(args)
ApiKey.revoke_max_life_keys!
end
end
end