debian-mirror-gitlab/app/workers/remove_expired_group_links_worker.rb
2019-12-21 20:55:43 +05:30

12 lines
268 B
Ruby

# frozen_string_literal: true
class RemoveExpiredGroupLinksWorker
include ApplicationWorker
include CronjobQueue
feature_category :authentication_and_authorization
def perform
ProjectGroupLink.expired.destroy_all # rubocop: disable DestroyAll
end
end