Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coupon and Coupons are different collections ? #186

Open
K0RSHAK opened this issue Apr 11, 2023 · 2 comments
Open

Coupon and Coupons are different collections ? #186

K0RSHAK opened this issue Apr 11, 2023 · 2 comments

Comments

@K0RSHAK
Copy link

K0RSHAK commented Apr 11, 2023

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.

@piyushroshan
Copy link
Collaborator

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

@K0RSHAK
Copy link
Author

K0RSHAK commented Apr 29, 2023

Thx, have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants