Commit 93fce2845b9fe1b2bd57d446c3704ba3a6a75c2c
Exists in
master
and in
1 other branch
Merge branch 'master' of http://git.sourcecode.co.th/nattaponw/spw
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ais-structure/src/modules/customer/postCustomer.ctrl.js
@@ -12,7 +12,7 @@ exports.postCustomer = async function (req, res, next){ | @@ -12,7 +12,7 @@ exports.postCustomer = async function (req, res, next){ | ||
12 | var d01 = "D01"; | 12 | var d01 = "D01"; |
13 | var method = constant.METHOD.POST; | 13 | var method = constant.METHOD.POST; |
14 | 14 | ||
15 | - if(req.params.userData && req.params.userType){ | 15 | + if(req.body.user.userData && req.body.user.userType){ |
16 | var customerId = req.body.user.userData+"@"+req.body.user.userType; | 16 | var customerId = req.body.user.userData+"@"+req.body.user.userType; |
17 | } | 17 | } |
18 | 18 |