You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After logging in, the application checks whether the user has a basket, otherwise a new basket with a new ID is created. But always create a new one, after login.
I reviewed the code in the file "routes / login.js" and found the error, it is a case-sensitive problem. userId != UserId
Thanks a lot for opening your first issue with us! 🧡 We'll get back to you shortly! ⏳ If it was a Support Request, please consider asking on the community chat next time! 💬
This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.
After logging in, the application checks whether the user has a basket, otherwise a new basket with a new ID is created. But always create a new one, after login.
I reviewed the code in the file "routes / login.js" and found the error, it is a case-sensitive problem. userId != UserId
Line 16:
models.Basket.findOrCreate({ where: { userId: user.data.id }, defaults: {} })
but the correct is
models.Basket.findOrCreate({ where: { UserId: user.data.id }, defaults: {} })
Version of JuiceShop: 12.0.2
Version of NodeJS: v12.18.3
The text was updated successfully, but these errors were encountered: