Skip to content

Commit

Permalink
fix: add secrets default sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
kielbasa-elp committed Sep 19, 2024
1 parent 32242e1 commit 679e0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/lib/buildel/organizations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ defmodule Buildel.Organizations do

def list_organization_secrets(%Organization{} = organization) do
organization
|> Repo.preload(:secrets)
|> Repo.preload([secrets: (from s in Secret, order_by: [desc: s.inserted_at])])
|> Map.get(:secrets)
end

Expand Down

0 comments on commit 679e0ab

Please sign in to comment.