Bypassing Multitenancy on Destroy Actions
My goal is to delete any invitation that is expired using a cron job (Oban)
But multitenancy doesn't seem to be a valid option for the destroy action DSL, and I'm not sure about the filter line there either 🤔 what can I do in this case?
Solution:Jump to solution
This is working though
```elixir
MyApp.Establishments.Invitation
|> Ash.Query.for_read(:expired)...
4 Replies
Hm...are you on the latest ash version? The bypass option was added recently
Just upgraded, but still, it seems like is not a valid option

Solution
This is working though