Try refreshing the data instead

qa/10.0.0
Rick Carlino 2020-05-17 13:21:01 -05:00
parent 27da00be16
commit 2eb178279f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ defmodule FarmbotExt.API.DirtyWorker do
|> Enum.map(fn item ->
if (item.id) do
Process.sleep(300)
next_item = Repo.get_by(module, id: x.id)
next_item = Repo.get_by(module, id: item.id)
old_y = item.y
new_y = next_item.y
msg = "Y value after DB refresh: #{old_y} => #{new_y}"