Skip to content

Commit

Permalink
requested changes links.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
AfonsoMartins26 committed Sep 22, 2024
1 parent 3f11589 commit 4c77426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cesium_link/links.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule CesiumLink.Links do
def list_unarchived_links_by_index do
Link
|> where([l], fragment("? <= now() OR ? IS NULL", l.publish_at, l.publish_at))
|> where([l], l.archived == false)
|> where([l], not l.archived)
|> order_by([l], asc: l.index)
|> Repo.all()
end
Expand Down

0 comments on commit 4c77426

Please sign in to comment.