-
Notifications
You must be signed in to change notification settings - Fork 83
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
BUG: Recipies dont get populated when starting fresh #111
Comments
I saw this bug, when i was trying to insert something from my localmachine. |
@sadath2001 does this issue still exists? |
@sadath2001 , yes, it does, only when we start fresh, i.e there are no existing recipes at all in the application. In which case, i will point to undefined. |
@sadath2001 I tried to repro this issue using a new account but it works fine. |
github.mp4Its no longer an issue, since i applied the fix to this in the recipie validation PR. so i believe this can be closed. |
Okay then closing this issue. |
Is there an existing issue raised for this?
Describe your issue
Hi,
I found a bug recently.
When i create a new account, and then i login, initially there would be no recipies.
When i try adding the recipie, it shows internal error.
Steps to reproduce
What was the expected result?
The recipie shouldve been added succesfully
Proposed solution
i could see that there is a slight issue in the code:
const lastDocument = await Recipe.findOne().sort({ _id: -1 });
const unique = lastDocument._id.toString()
Since there is no last document, it throws an error.
I have to try and check by testing to fix this issue.
Kindly assign this to me
Would you like to work on this issue?
Yes
Terms & Conditions
The text was updated successfully, but these errors were encountered: