Skip to content

Commit

Permalink
feat: add ordering to query searching for tokens to refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Aug 7, 2024
1 parent 1cc47e1 commit 27b3386
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Gw2AccountApiTokenEntity save(@Param("account_id") UUID accountId,
ON tk.account_id = acc.account_id AND tk.gw2_account_id = acc.gw2_account_id
WHERE tk.last_valid_time >= :last_valid_time
AND (tk.last_valid_check_time <= :last_valid_check_time OR acc.last_name_check_time <= :last_name_check_time)
ORDER BY tk.last_valid_check_time
LIMIT :limit
""")
List<Gw2AccountRefreshEntity> findAllApplicableForRefresh(
Expand Down

0 comments on commit 27b3386

Please sign in to comment.