mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
chore: credo
This commit is contained in:
parent
c753a37cfe
commit
9cc942f233
1 changed files with 3 additions and 2 deletions
|
@ -261,8 +261,9 @@ defmodule AshPostgres.SortTest do
|
||||||
Ash.read!(
|
Ash.read!(
|
||||||
Post
|
Post
|
||||||
|> Ash.Query.load(:views)
|
|> Ash.Query.load(:views)
|
||||||
# this doesn't really make sense to do, you'd want to do something like `max(views, field: :time)` or something.
|
# this doesn't really make sense to do, you'd want to do something like
|
||||||
# but it illustrates a bug fix, and nothing currently prevents you from doing it, so we keep the test for now.
|
# `max(views, field: :time)` or something. but it illustrates a bug fix,
|
||||||
|
# and nothing currently prevents you from doing it, so we keep the test for now.
|
||||||
|> Ash.Query.sort({Ash.Sort.expr_sort(views.time, :datetime), :desc}, title: :asc)
|
|> Ash.Query.sort({Ash.Sort.expr_sort(views.time, :datetime), :desc}, title: :asc)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue