Showing
1 changed file
with
2 additions
and
1 deletions
@@ -205,8 +205,9 @@ const yohood = { | @@ -205,8 +205,9 @@ const yohood = { | ||
205 | let {uid, couponId} = req.query; | 205 | let {uid, couponId} = req.query; |
206 | 206 | ||
207 | // console.log(uid, couponId); | 207 | // console.log(uid, couponId); |
208 | + uid = parseInt(uid, 10); | ||
208 | 209 | ||
209 | - if (!uid || uid === '0' || !couponId) { | 210 | + if (!uid || !couponId) { |
210 | return res.json({ | 211 | return res.json({ |
211 | code: 400, | 212 | code: 400, |
212 | message: INVALID_PARAMS | 213 | message: INVALID_PARAMS |
-
Please register or login to post a comment