mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-08 23:18:05 -05:00
Add distinct
This commit is contained in:
@@ -90,7 +90,7 @@ export const identityAccessTokenDALFactory = (db: TDbClient) => {
|
||||
// Notice: we broken down the query into multiple queries and union them to avoid index usage issues.
|
||||
// each query got their own index for better performance, therefore, if you want to change
|
||||
// the query, you need to update the indexes accordingly to avoid performance regressions.
|
||||
return revokedTokensQuery.unionAll(exceededUsageLimitQuery).unionAll(expiredTTLQuery);
|
||||
return revokedTokensQuery.unionAll(exceededUsageLimitQuery).unionAll(expiredTTLQuery).distinct();
|
||||
};
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user