OWASP / crAPI

completely ridiculous API (crAPI)
Apache License 2.0
1.07k stars 334 forks source link

Coupon and Coupons are different collections ? #186

Open K0RSHAK opened 1 year ago

K0RSHAK commented 1 year ago

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.

piyushroshan commented 1 year ago

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

K0RSHAK commented 1 year ago

Thx, have a nice day!