Hi,
Im struggling to understand what is required for this task - I’ve spent way too long just getting through the first three tasks, and now number 4 I think I have done but its not passing the test … I dont understand why though. My output is as:
The test description says : “…return the user object with the exercise fields added”, which I think I am doing … ?
Can someone advise what is being asked here?
Many thanks in advance
Edit: I missed count in the output, and suspect that activities should be called log, so the output is now as below - still no passing the test though:
I saw that one thanks! It’s infuriating cos it does’nt tell me how I am failing the test…
In answer to your question I’ve tried both ways, at first I was storing as Date, and then as String, but I cant get either way to work. If I store as Date the output I get is this format:
Could you confirm what the expected output for task 4 should be? The last line of the description is “App will return the user object with the exercise fields added.” - does this just mean the exercise fields that were added, or all of the exercise fields for the user? I have now interpreted the intention as:
_id and username are the user object, with the new exercise fields description, duration and date added - as per the description… But still, its not working., arrrggghhh.
The most reliable way to get what the tests want is by going to the source code:
I realise this is not ideal, and many of the projects/lessons are being re-worked, but this is a good opportunity for you to practice some backend debugging.