lib/cloudtasker/worker.rb in cloudtasker-0.8.0 vs lib/cloudtasker/worker.rb in cloudtasker-0.8.1

- old
+ new

@@ -33,10 +33,10 @@ # @return [Cloudtasker::Worker, nil] The instantiated worker. # def self.from_hash(hash) # Symbolize metadata keys and stringify job arguments payload = JSON.parse(hash.to_json, symbolize_names: true) - payload[:job_args] = JSON.parse(hash[:job_args].to_json) + payload[:job_args] = JSON.parse(payload[:job_args].to_json) # Extract worker parameters klass_name = payload&.dig(:worker) return nil unless klass_name