I’d like to the change the item.inserted_at below to be in business days not normal days. I created a function called is_10_business_days? to determine if the date corresponds. How would I call there in my where clause?
def list_users() do
from(
u in User,
# other info here
where:
item.status == "foo" and
is_nil(item.sent_at) and item.inserted_at < ago(10, "day")
)
|> Repo.all()