mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Don't release client on client error
This commit is contained in:
@@ -99,12 +99,6 @@ export class Postgres implements IDatabase {
|
||||
client = await this.getClient(type);
|
||||
client.on("error", (err) => {
|
||||
Logger.error(err.stack);
|
||||
|
||||
try {
|
||||
client.release(true);
|
||||
} catch (err) {
|
||||
Logger.error(`client (postgres): ${err}`);
|
||||
}
|
||||
});
|
||||
|
||||
const queryResult = await client.query({ text: query, values: params });
|
||||
|
||||
Reference in New Issue
Block a user