Skip to content

Commit 302afee

Browse files
committed
Changed data access to Express4 tedious v0.2
1 parent d9f2c71 commit 302afee

6 files changed

Lines changed: 5686 additions & 87 deletions

File tree

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

Lines changed: 0 additions & 85 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"config": "^1.29.2",
1616
"debug": "^2.6.9",
1717
"express": "^4.16.2",
18-
"express4-tedious": "^0.1.0",
18+
"express4-tedious": "^0.2.0",
1919
"tedious": "^1.15.0"
2020
}
2121
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var TYPES = require('tedious').TYPES;
55
/* GET products. */
66
router.get('/', function (req, res) {
77
req.sql("select ProductID, Name, Color, Price, Quantity, JSON_VALUE(Data, '$.MadeIn') as MadeIn, JSON_QUERY(Tags) as Tags from Product FOR JSON PATH, ROOT('data')")
8-
.into(res, '[]');
8+
.into(res);
99
});
1010

1111
/* GET single product. */

0 commit comments

Comments
 (0)