Attempted to update stale record error update record in a loop
I think it is from ecto and i miss something, i do not want to use Ash generator here! so with a sleep it returns error
Simple Code:
What am i missing? every time i get record again 🤔 thanks
Solution:Jump to solution
I wrapped it inside, i think it fixed my code 🧑💻
```
Ash.DataLayer.transaction(MishkaCms.Runtime.Layout, fn ->
....
end)...
1 Reply
Solution
I wrapped it inside, i think it fixed my code 🧑💻