Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
15 Zeilen
354 B
Ruby
15 Zeilen
354 B
Ruby
|
module Jobs
|
||
|
class ClearNextSessionWizard < Jobs::Base
|
||
|
sidekiq_options queue: 'critical'
|
||
|
|
||
|
def execute(args)
|
||
|
User.human_users.each do |u|
|
||
|
if u.custom_fields['redirect_to_wizard'] === args[:wizard_id]
|
||
|
u.custom_fields.delete('redirect_to_wizard')
|
||
|
u.save_custom_fields(true)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|