OWASP/crAPI

Coupon and Coupons are different collections ?

K0RSHAK opened this issue · 2 comments

collection := client.Database("crapi").Collection("coupon")

Does it intentional typo or not, because I can create a coupon but can't use that.

Pay attention on the validate coupon func and a collection name that used.

I recommend to use constants for table/collection names if you'll pass this manually in every calls.

Thank you for reporting the issue. Its a typo. Will sort this out.

Thx, have a nice day!