Skip to content

Commit

Permalink
feat(api): sort proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
hbriese committed Jul 29, 2024
1 parent 98aebdd commit 60a13f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/feat/proposals/proposals.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ProposalsService {
...shape?.(p),
...(pendingFilter ? { pendingFilter } : {}), // Must be included in the select (not just the filter) to avoid bug
filter: and(e.op(p.account, '=', e.cast(e.Account, account)), pendingFilter),
order_by: p.createdAt,
order_by: { expression: p.createdAt, direction: e.DESC },
};
}),
{ account },
Expand Down

0 comments on commit 60a13f5

Please sign in to comment.