crAPI icon indicating copy to clipboard operation
crAPI copied to clipboard

Coupon and Coupons are different collections ?

Open K0RSHAK opened this issue 1 year ago • 2 comments

https://github.com/OWASP/crAPI/blob/df1be10efa127a9cf1e0f9479836bedc980b9f36/services/community/api/models/coupon.go#L61

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.

K0RSHAK avatar Apr 11 '23 10:04 K0RSHAK

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

piyushroshan avatar Apr 28 '23 10:04 piyushroshan

Thx, have a nice day!

K0RSHAK avatar Apr 29 '23 18:04 K0RSHAK