|
@@ -26,6 +26,7 @@ class CouponService extends CrudService {
|
|
|
const max = _.get(get_limit_config, 'max', 1);
|
|
|
const num = await this.userCouponModel.count({ coupon: coupon._id, customer });
|
|
|
if (this.ctx.minus(num, max) >= 0) coupon.canGet = false;
|
|
|
+ else coupon.canGet = true;
|
|
|
}
|
|
|
}
|
|
|
return list;
|