0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Cast watch_category array to integer

Dieser Commit ist enthalten in:
Angus McLeod 2020-07-20 13:51:11 +10:00
Ursprung 36c0281b2f
Commit 382ee50f13

Datei anzeigen

@ -149,9 +149,7 @@ class CustomWizard::Action
user: user user: user
).perform ).perform
unless watched_categories.is_a?(Array) watched_categories = [*watched_categories].map(&:to_i)
watched_categories = [watched_categories]
end
notification_level = action['notification_level'] notification_level = action['notification_level']