multi-db-orm 2.1.19 → 2.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,9 +27,9 @@ export class MultiDbORM {
27
27
  sort?: { field: string, order: 'asc' | 'desc' }[]
28
28
  limit?: number,
29
29
  offset?: number
30
- }): Promise<any>;
30
+ }): Promise<any[]>;
31
31
 
32
- getOne(modelname: string, filter: Record<string, any>): Promise<any[]>;
32
+ getOne(modelname: string, filter: Record<string, any>): Promise<any>;
33
33
 
34
34
  create(modelname: string, object: Record<string, any>): Promise<any>;
35
35
 
@@ -32,7 +32,7 @@ class MySQLDB extends MultiDbORM {
32
32
  acquireTimeout: credentials.acquireTimeout || 10000,
33
33
  timeout: credentials.timeout || 60000
34
34
  });
35
-
35
+ this.db = this.pool
36
36
  this.pool.on('connection', (connection) => {
37
37
  if (this.loglevel > 1)
38
38
  console.log('MySQLDB: New connection acquired');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-db-orm",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "description": "CRUD , Backup , Restore and Migration library for multiple databases",
5
5
  "main": "index.js",
6
6
  "dependencies": {