The date property of any object in the log array that is returned from GET /api/users/:id/logs should be a string not passed

Tell us what’s happening:
Describe your issue in detail here.
response /api/users/:_id/logs 624f3323834b7c413f6d8eb5 undefined undefined 1 /api/users/:_id/logs { username: 'fcc_test_16493576027', count: 1, _id: '624f3323834b7c413f6d8eb5', log: [ { description: 'test', duration: 60, date: 'Mon Jan 01 1990' } ] } /api/users/:_id/logs 624f3323834b7c413f6d8eb5 1990-01-02 1990-01-04 1 /api/users/:_id/logs { username: 'fcc_test_16493576027', count: 1, _id: '624f3323834b7c413f6d8eb5', log: [ { description: 'test', duration: 60, date: 'Wed Jan 03 1990' } ] }

const response = {
username: data[0].username,
count: data.length,
_id: data[0].uid,
log: data.map((item) => ({
description: item.description,
duration: item.duration,
date: item.date.toDateString()
}))
}

why not pass case The date property of any object in the log array that is returned from GET /api/users/:id/logs should be a string… Use the dateString format of the Date API.

Your project link(s)

solution: https://boilerplate-project-exercisetracker.ngnam3.repl.co

Your browser information:

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

Challenge: Exercise Tracker

Link to the challenge:

https://boilerplate-project-exercisetracker.ngnam3.repl.co/api/users/624f3323834b7c413f6d8eb5/logs

Not sure if you fixed it or what, but when I tested your code it passed.