Skip to content

Commit ab21f14

Browse files
committed
Fix order by in most recent app
1 parent 028477a commit ab21f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plexus/apps.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule Plexus.Apps do
3838
@spec fetch_most_recently_added_app! :: App.t()
3939
def fetch_most_recently_added_app! do
4040
App
41-
|> order_by(:inserted_at)
41+
|> order_by(desc: :inserted_at)
4242
|> limit(1)
4343
|> Repo.one!()
4444
end

0 commit comments

Comments
 (0)