We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cfd301 commit 49a9172Copy full SHA for 49a9172
core/token-pooling/sql-token-persistence.js
@@ -15,7 +15,9 @@ export default class SqlTokenPersistence {
15
} else {
16
this.pool = new pg.Pool({ connectionString: this.url })
17
}
18
- const result = await this.pool.query(`SELECT token FROM ${this.table};`)
+ const result = await this.pool.query(
19
+ `SELECT token FROM ${this.table} ORDER BY RANDOM();`,
20
+ )
21
return result.rows.map(row => row.token)
22
23
0 commit comments