51fa8f2eb4
• Added: - New Account filtering - PreviewCard viewing/sorting/filtering deleting (todo) - DeletePreviewCardWorker, Service - Status viewing/sorting/filtering deleting - ChatMessage viewing/sorting/filtering deleting (todo) - Account > Follows view • Updated: - LinkBlock to sort alphabetically - Groups to be under "Moderation" instead of "Admin" in navigation.rb - Status in admin to have group name/link - Reports reset button - Group filtering/sorting - LinkBlock filtering/sorting - Account now has bio and few more data points in dashboard
13 lines
280 B
Ruby
13 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeletePreviewCardWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options unique: :until_executed
|
|
|
|
def perform(preview_card_id)
|
|
return if preview_card_id.nil?
|
|
DeletePreviewCardService.new.call(PreviewCard.find(preview_card_id))
|
|
end
|
|
end
|