Closed adonig closed 1 month ago
@adonig I didn't spot this when I asked you to open a bug, but the problem is just one of syntax.
atomic_ref
is a template like actor
or arg
change atomic_update(
:changed_at,
expr(
if hash != ^atomic_ref(:hash) do
now()
else
changed_at
end
)
)
Describe the bug My create action raises this error during while doing an upsert:
To Reproduce Tried to do this in a create action that supports upsert:
Expected behavior It shouldn't raise an exception. Instead it should set changed_at to now() iff the hash changed.
Runtime
Additional context See #debugging Discord channel.