Skip to content
Permalink
Browse files

Fix DirtyWorker doing patch requests

  • Loading branch information...
ConnorRigby committed Aug 12, 2019
1 parent 8f56045 commit 8de13118e5b012b79bbf59ad1d6996b2c93ab3dd
Showing with 2 additions and 1 deletion.
  1. +2 −1 farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex
@@ -126,7 +126,8 @@ defmodule FarmbotExt.API.DirtyWorker do

defp http_request(dirty, state) do
Logger.debug("#{state.module} dirty request (patch)")
path = state.module.path()
# IO.inspect(dirty, label: "PATCH")
path = Path.join(state.module.path(), to_string(dirty.id))
data = render(state.module, dirty)
API.patch(API.client(), path, data)
end

0 comments on commit 8de1311

Please sign in to comment.
You can’t perform that action at this time.