Showing
1 changed file
with
1 additions
and
1 deletions
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | let couponsModel = require('../models/coupons-model'); | 3 | let couponsModel = require('../models/coupons-model'); |
4 | 4 | ||
5 | const index = (req, res, next)=>{ | 5 | const index = (req, res, next)=>{ |
6 | - let uid = '8050496'; | 6 | + let uid = req.user.uid; |
7 | 7 | ||
8 | couponsModel.couponsData(uid, req.query).then(result => { | 8 | couponsModel.couponsData(uid, req.query).then(result => { |
9 | res.render('coupons', result); | 9 | res.render('coupons', result); |
-
Please register or login to post a comment