Skip to content

Commit

Permalink
add orderby CreatedAt for MultisigSession
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Oct 21, 2023
1 parent c32a0d4 commit 3320572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/repositories/multisigSessionRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const findNonExpiredMultisigSessions = async (
.andWhere('lower("multisigAddress") = :multisigAddress', {
multisigAddress: multisigAddress.toLowerCase(),
})
.orderBy('"createdAt"', 'DESC')
.getOne();

if (!session) return null;
Expand Down

0 comments on commit 3320572

Please sign in to comment.