Quality Assurance Projects - Issue Tracker

Tell us what’s happening:

Hi, i have a problem with passing the 3rd and 4th tests. As i checked, i get exactly the same results as example app, can’t get what’s wrong with it :confused: Any hint would be great :slight_smile:

That’s my code so far (only post method)

###Your project link(s)

solution: https://3000-koleks92-issuetracker-9dshxbqidzq.ws-eu115.gitpod.io

githubLink: GitHub - koleks92/issue-tracker: Issue Tracker is a project for Quality Assurance

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Quality Assurance Projects - Issue Tracker

The POST request to /api/issues/{projectname} will return the created object, and must include all of the submitted fields. Excluded optional fields will be returned as empty strings. Additionally, include created_on (date/time), updated_on (date/time), open (boolean, true for open - default value, false for closed), and _id .

Excluded optional fields will be returned as empty strings.

{"issue_title":"asd","issue_text":"asd","created_on":"2024-07-20T07:11:55.067Z","updated_on":"2024-07-20T07:11:55.067Z","created_by":"asd","assigned_to":"","open":true,"status_text":"","_id":"669b633b52eca4c7c2950967","__v":0}

thats what i’m getting back as object, so excluded optional fields are returnd as empty string

Just firgured out :joy:

If anybody has the same problem, in my case it was the mongoose model, missing “Excluded optional fields will be returned as empty strings”

Thanks for help :slight_smile:

1 Like