We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8adf8f7 commit f24f7cbCopy full SHA for f24f7cb
example/pooled/models/dog.js
@@ -5,13 +5,13 @@ const MySQLModel = require('../../../model');
5
module.exports = class DogModel extends MySQLModel {
6
constructor (app, connection) {
7
super();
8
- this.connection = await connection.promise();
+ this.connection = connection.promise();
9
}
10
11
async test () {
12
const { connection } = this;
13
14
- const [ rows ] = connection.query('SELECT 1');
+ const [ rows ] = await connection.query('SELECT 1');
15
return rows;
16
17
};
0 commit comments