Skip to content

Commit c42e02d

Browse files
Merge pull request microsoft#364 from JocaPC/master
Upgrades nodejs samples to v0.3 data access
2 parents 8d231e1 + 48e2501 commit c42e02d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app.use(express.static('wwwroot'));
1010
app.use(bodyParser.text({ type: 'application/json' }))
1111

1212
app.use(function (req, res, next) {
13-
req.sql = tediousExpress(req, config.get('connection'));
13+
req.sql = tediousExpress(config.get('connection'));
1414
next();
1515
});
1616

samples/features/json/product-catalog/nodejs-jquery-bootstrap-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"dependencies": {
1414
"body-parser": "^1.18.2",
15-
"config": "^1.29.2",
15+
"config": "^1.29.4",
1616
"debug": "^2.6.9",
1717
"express": "^4.16.2",
18-
"express4-tedious": "^0.2.0",
18+
"express4-tedious": "^0.3.0",
1919
"tedious": "^1.15.0"
2020
}
2121
}

samples/features/json/todo-app/nodejs-express4-rest-api/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var tediousExpress = require('express4-tedious');
55

66
var app = express();
77
app.use(function (req, res, next) {
8-
req.sql = tediousExpress(req, config.get('connection'));
8+
req.sql = tediousExpress(config.get('connection'));
99
next();
1010
});
1111

samples/features/json/todo-app/nodejs-express4-rest-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"debug": "^2.2.0",
1717
"express": "^4.14.0",
1818
"tedious": "^1.14.0",
19-
"express4-tedious": "^0.1.0"
19+
"express4-tedious": "^0.3.0"
2020
}
2121
}

0 commit comments

Comments
 (0)