Try refreshing the data instead

qa/10.0.0
Rick Carlino 2020-05-17 13:25:16 -05:00
parent 2eb178279f
commit 7431ecf800
2 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
10.0.0-rc39 10.0.0-rc40

View File

@ -47,10 +47,12 @@ defmodule FarmbotExt.API.DirtyWorker do
if (item.id) do if (item.id) do
Process.sleep(300) Process.sleep(300)
next_item = Repo.get_by(module, id: item.id) next_item = Repo.get_by(module, id: item.id)
old_y = item.y if module == FarmbotCore.Asset.Point do
new_y = next_item.y old_y = item.y
msg = "Y value after DB refresh: #{old_y} => #{new_y}" new_y = next_item.y
FarmbotCore.Logger.info(2, msg) msg = "Y value after DB refresh: #{old_y} => #{new_y}"
FarmbotCore.Logger.info(2, msg)
end
next_item next_item
else else
item item