Anonymous message board Project - POST request to /api/threads/{board} fail

Hello, this is the first time I get stuck with a final project for certifications.
All the other validators pass, my 10 functional tests pass correctly. The only one failing is:

You can send a POST request to /api/threads/{board} with form data including
text and delete_password . The saved database record will have at least the fields _id, text, created_on (date & time), bumped_on (date & time, starts same as created_on),
reported (boolean), delete_password , & replies (array).

My thread schema is:

const threadsSchema = new Schema({
  reported:{type:Boolean, default:false}, 
  created_on: {type: Date, default: new Date()},
  bumped_on: {type: Date, default: new Date()},
  delete_password: String,
  text: String,
  replies: [repliesSchema]

(repliesSchema is the replies schema). I’m not sure what I’m doing wrong, no hint to know where the control fail. My db is filled correctly, fields names seems correct, everything else is working as expected.

Can somebody please help me find what’s wrong?

Solved, I didn’t send bumped_on when using GET method.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.