We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
koa2-note/demo/project/server/utils/db-util.js
Line 17 in c667c4f
The code here is reject but not resolve
reject
resolve
return new Promise(( resolve, reject ) => { pool.getConnection(function(err, connection) { if (err) { resolve( err ) // reject( err ) } else { connection.query(sql, values, ( err, rows) => { if ( err ) { reject( err ) } else { resolve( rows ) } connection.release() }) } }) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
koa2-note/demo/project/server/utils/db-util.js
Line 17 in c667c4f
The code here is
reject
but notresolve
The text was updated successfully, but these errors were encountered: