Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

api-server/router-products.js
... ... @@ -20,7 +20,8 @@ function pageIndex(req, res, next) {
20 20 }
21 21  
22 22 function pageAdd(req, res, next) {
23   - if (!req.params.product || req.params.product !== 'string' || !req.params.product.trim()) {
  23 + //if (!req.params.product || req.params.product !== 'string' || !req.params.product.trim()) {
  24 + if (!req.params.product) {
24 25 res.json({
25 26 method: '/products/add',
26 27 error: true,
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.29.0",
  3 + "version": "1.29.1",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.29.0",
  3 + "version": "1.29.1",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {