lib/cloudtasker/backend/memory_task.rb in cloudtasker-0.13.2 vs lib/cloudtasker/backend/memory_task.rb in cloudtasker-0.14.rc1
- old
+ new
@@ -129,10 +129,10 @@
# Return task payload.
#
# @return [Hash] The task payload.
#
def payload
- @payload ||= JSON.parse(http_request.dig(:body), symbolize_names: true)
+ @payload ||= JSON.parse(http_request[:body], symbolize_names: true)
end
#
# Return the worker class from the task payload.
#