Commit 93fce2845b9fe1b2bd57d446c3704ba3a6a75c2c

Authored by Nattapon Wongpaet
2 parents 8221da7a d0a8d282
Exists in master and in 1 other branch dev

Merge branch 'master' of http://git.sourcecode.co.th/nattaponw/spw

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