Skip to content

Commit

Permalink
remove oldest entries fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeuchi committed Nov 14, 2023
1 parent a1b86b6 commit 47b5bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PgSortKeyCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ export class PgSortKeyCache<V> implements SortKeyCache<V> {
`
SELECT count(1) as total
FROM "${this.schemaName}"."${this.tableName}"
GROUP BY key
`
WHERE key = $1
`, [key]
);
if (rs.rows.length > 0) {
const entriesTotal = rs.rows[0].total;
Expand Down

0 comments on commit 47b5bb6

Please sign in to comment.