Testing valid returns api

I’m trying to pass the happy route however I’m encountering some problems keep getting 404 server error, also not seeing a collection for the returns on mongoDB idk if i should but i would think if we are saving it, there should be a created collection.

this is moshes vs my code and looking the same mosh’s is a constructor but mine is null


here is the route handler

here is the testing code


I’m also noticing there is no dateReturned on the DB, idk if it’s supposed to be like that when there is no initial value.

On postman i’m getting a 200 for posting a customer id and movie id

Oh i found the problem! i had set customer and movie id instead of _id , I had thought the server sets it to _id automatically but that was a supplied key.

I have great news everyone! if your worried about AI taking your jobs, don’t worry. Chat gpt couldn’t find the simple stupid answer to this even though I asked him a dozen times