Tell us what’s happening:
I am working on the Microservice and API course project section,
I tried to submit the solution but the section is giving error on two-point, I have check that part on my own i didnt find any issue pls check it
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.
Ok, I think I see where the problem is. Your variables do not have the correct type. For example req.body.duration is a string but the value corresponding to the key “duration” in your database and the JSON object returned in the browser needs to be an integer. Same thing with date (needs to be a string in the browser and a Date object in your database if I remember correctly).