I have passed 9/11 tests, but I cannot get these last two tests on the issue tracker to pass. It’s not clear to me what I’m going wrong. Can anyone help?
FCC Issue Tracker requirements: https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/issue-tracker
My source code: GitHub - camchardukian/FCC-Project-Issue-Tracker
My deployed app: https://FCC-Project-Issue-Tracker-4.camchardukian.repl.co
Failing Test #1
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.
I did research and it seems this test may be failing because I have managed the created_on and updated_on values with my Mongo schema rather than updating them directly. I feel like using the Mongo schema to manage these values is less error-prone, but if this is indeed the issue I can change my code to match the needs of the project!
Otherwise, if there’s another issue or a different problem with my code I’d appreciate any help in identifying it.
Failing Test # 2
You can send a PUT request to /api/issues/{projectname} with an _id and one or more
fields to update. On success, the updated_on field should be updated, and returned
should be { result: 'successfully updated', '_id': _id }.
I really can’t figure out why this test is still failing.
Conclusion
Again, any guidance or direction you can give for either of these issues would be much appreciate. Thank you so much!