mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
@@ -56,7 +56,9 @@ export class Postgres implements IDatabase {
|
||||
Logger.debug(`prepare (postgres): type: ${type}, query: ${query}, params: ${params}`);
|
||||
|
||||
try {
|
||||
const queryResult = await this.pool.query({text: query, values: params});
|
||||
const client = await this.pool.connect();
|
||||
const queryResult = await client.query({text: query, values: params});
|
||||
client.release();
|
||||
|
||||
switch (type) {
|
||||
case "get": {
|
||||
|
||||
Reference in New Issue
Block a user