actualizaciones y logs

This commit is contained in:
2025-06-05 15:38:03 -03:00
parent 64560ac7e9
commit 7722dbad00
3 changed files with 22 additions and 7 deletions

View File

@ -141,7 +141,7 @@ defmodule Api.EmailToSendContext do
end
def get_next_email() do
one_day_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-86400, :second)
# one_day_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-86400, :second)
from(
e in Emailtosend,
@ -161,8 +161,8 @@ defmodule Api.EmailToSendContext do
e.hasreport == true and
e.sent != true and
e.retries < 10
)
and e.registered >= ^one_day_ago,
),
# and e.registered >= ^one_day_ago,
limit: 1,
select: %{
idemailtosend: e.idemailtosend,