Skip to content

Commit 4f31cc6

Browse files
committed
Merge branch 'master' of github.com:ctgbarcalow/node-mssql
2 parents b4f424d + a342cc9 commit 4f31cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Then the route uses the connection pool in the `app.locals` object:
437437
const sql = require('mssql');
438438

439439
module.exports = function(req, res) {
440-
req.locals.db.query('SELECT TOP 10 * FROM table_name', function(err, recordset) {
440+
req.app.locals.db.query('SELECT TOP 10 * FROM table_name', function(err, recordset) {
441441
if (err) {
442442
console.error(err)
443443
res.status(500).send('SERVER ERROR')

0 commit comments

Comments
 (0)