A platform for community discussion. Free, open, simple.
DEV: Fix typo. (#15857)
Alan Guo Xiang Tan6f03b2694d6c
diff --git a/app/jobs/base.rb b/app/jobs/base.rbindex 29db06c99fe..8d82e2d2dfc 100644--- a/app/jobs/base.rb+++ b/app/jobs/base.rb@@ -303,7 +303,7 @@ module Jobs# Simulate the args being dumped/parsed through JSONparsed_opts = JSON.parse(JSON.dump(opts))if opts != parsed_opts- Discourse.deprecate(<<~MSG.squish, since: "v2.9", drop_from: "3.0")+ Discourse.deprecate(<<~MSG.squish, since: "2.9", drop_from: "3.0")#{klass.name} was enqueued with argument values which do not cleanly serialize to/from JSON.This means that the job will be run with slightly different values than the ones supplied to `enqueue`.Argument values should be strings, booleans, numbers, or nil (or arrays/hashes of those value types).