Skip to content

Commit f24f7cb

Browse files
authored
Update dog.js
1 parent 8adf8f7 commit f24f7cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/pooled/models/dog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ const MySQLModel = require('../../../model');
55
module.exports = class DogModel extends MySQLModel {
66
constructor (app, connection) {
77
super();
8-
this.connection = await connection.promise();
8+
this.connection = connection.promise();
99
}
1010

1111
async test () {
1212
const { connection } = this;
1313

14-
const [ rows ] = connection.query('SELECT 1');
14+
const [ rows ] = await connection.query('SELECT 1');
1515
return rows;
1616
}
1717
};

0 commit comments

Comments
 (0)