mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: remove setting of error type on query-error
- type Listener params as any
This commit is contained in:
@@ -90,9 +90,6 @@ export default class DatabaseCore extends DatabaseBase {
|
||||
|
||||
async connect() {
|
||||
this.knex = knex(this.connectionParams);
|
||||
this.knex.on('query-error', (error: Error) => {
|
||||
error.cause = getDbError(error);
|
||||
});
|
||||
await this.knex.raw('PRAGMA foreign_keys=ON');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user