Commit 0850dcf227f21ec7b728e87fda06e0c9c5ed533e
1 parent
b5fbb064
Exists in
master
and in
1 other branch
update log
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
ais-structure/src/modules/helper/validator.js
ais-structure/src/modules/membercard/getMembership.ctrl.js
@@ -63,6 +63,7 @@ exports.getMembership = async function (req, res, next) { | @@ -63,6 +63,7 @@ exports.getMembership = async function (req, res, next) { | ||
63 | 63 | ||
64 | for(var i = 0; i < resultObj.resultData.length; i++){ | 64 | for(var i = 0; i < resultObj.resultData.length; i++){ |
65 | for(var j = 0; j < resultMemberCardObj.resultData.length; j++){ | 65 | for(var j = 0; j < resultMemberCardObj.resultData.length; j++){ |
66 | + console.log(resultMemberCardObj.resultData[j].cardOwnerIdList) | ||
66 | if(resultMemberCardObj.resultData[j].cardOwnerIdList.includes(resultObj.resultData[i].customerId)){ | 67 | if(resultMemberCardObj.resultData[j].cardOwnerIdList.includes(resultObj.resultData[i].customerId)){ |
67 | resultObj.resultData[i] = Object.assign(resultObj.resultData[i],{cardId : resultMemberCardObj.resultData[j].cardId}); | 68 | resultObj.resultData[i] = Object.assign(resultObj.resultData[i],{cardId : resultMemberCardObj.resultData[j].cardId}); |
68 | } | 69 | } |