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

[FIX]: Coupons controller get API returning empty array #115

Open
bhavyaj12 opened this issue Jun 23, 2022 · 0 comments
Open

[FIX]: Coupons controller get API returning empty array #115

bhavyaj12 opened this issue Jun 23, 2022 · 0 comments

Comments

@bhavyaj12
Copy link

Describe the bug
When fetching the coupons using the api, coupons object is empty despite adding coupons in db, as the db is not imported in the server.js file

To Reproduce
Steps to reproduce the behavior:

  1. Using mockman can check that the GET api - "api/coupon" returns empty

Expected behavior
An array of coupons should be returned instead.

Screenshots

  • Before fix

Screenshot (141)

  • After fix (as per my coupons.db)

Screenshot (143)

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Chrome Version 102.0.5005.115 (Official Build) (64-bit)
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

1 participant