Skip to content

Commit 655f439

Browse files
authored
Merge pull request #1433 from MikeZ77/master
Fixing small typo in connecting with express documentation.
2 parents c40b64a + 0ae9dfc commit 655f439

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)