Remove unncessary NaiveDateTime call.
Every non-nil entry in the database is considered unreachable.
This commit is contained in:
parent
0fe03fc4ee
commit
83c9756825
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ defmodule Pleroma.Instances.Instance do
|
||||||
from(i in Instance,
|
from(i in Instance,
|
||||||
where:
|
where:
|
||||||
i.host == ^host(url_or_host) and
|
i.host == ^host(url_or_host) and
|
||||||
i.unreachable_since <= ^NaiveDateTime.utc_now(),
|
not is_nil(i.unreachable_since),
|
||||||
select: true
|
select: true
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue