Verize Posted October 17, 2017 Report Posted October 17, 2017 (edited) So before I send a trade offer to a user I save general details about the trade to my MongoDB database. But I get following error: https://pastebin.com/4fSWHjrq This is a code snippet of the function that causes the error:https://pastebin.com/J5AeX6Fw Trade.newTrade is a function that saves the trade info to my database. What does this mean? Edited October 17, 2017 by Verize Quote
Verize Posted October 17, 2017 Author Report Posted October 17, 2017 Fixed it. Somehow my value parameter was not a number.. I changed the field to string in my mongoose model and now it works. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.