How to use `after_action` when soft delete is enabled in global `Change`
Hi, Sorry! I have a global change that i am using inside my many resources! the problem i have when i use soft delete
It does not work
But it works
Is it way to use
I have read this but i am using global Change
- https://hexdocs.pm/ash_archival/0.1.2/archival.html
Thank you in advance
Ash.destroy!(Ash.get!(MishkaCms.Runtime.Site, id)) it is not triggerdIt does not work
But it works
Is it way to use
Archive destroy inside Ash.Changeset.after_action ?By the way my config in my resource
I have read this but i am using global Change
- https://hexdocs.pm/ash_archival/0.1.2/archival.html
Thank you in advance
Solution
So it could be that it uses the
atomic callback depending on how you call your action and your atomic implementation isn't doing anything. But as your change only has an after_action and that's allowed in the context of atomics you can try this: