Skip to content

Commit 3444fd9

Browse files
committed
fix(tg-bot): repair DatabaseManager _query (no self-recursion)
1 parent d0daa09 commit 3444fd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/database/DatabaseManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ class DatabaseManager {
6565

6666
async _query(text, values) {
6767
try {
68-
return await this._query(text, values);
68+
return await this.pool.query(text, values);
6969
} catch (err) {
7070
if (this._isConnectionError(err)) {
7171
this.logger.warn('Connection error, reconnecting:', err.code || err.message);
7272
await this._reconnect();
73-
return await this._query(text, values);
73+
return await this.pool.query(text, values);
7474
}
7575
throw err;
7676
}

0 commit comments

Comments
 (0)