cms
cms copied to clipboard
hit checkUserEmailForPurchase in refreshDB only in prod
PR Fixes:
-
- Earlier, we were hitting checkUserEmailForPurchase in refresDb in both local and prod
-
- Since in local we don't have APPX Creds, we now only hit it in production.
Resolves #402
Screencast (Before fix)
Screencast from 14-04-24 11:47:05 AM IST.webm
Screencast (After fix)
Screencast from 14-04-24 11:48:13 AM IST.webm
Checklist before requesting a review
- I have performed a self-review of my code
- I assure there is no similar/duplicate pull request regarding same issue
refreshDB should just early return for local development
No need to drill this down to the checkUserEmailForPurchase function
checkUserEmailForPurchase should only be called in prod
Yup !! Agreed !!