Timestamp Microservice Project help

Tell us what’s happening:
Describe your issue in detail here.
I have completed the first challenge in Back End course and all the tests pass when I submit my local URL but progress bar doesn’t update to 20% and my projects isn’t marked as completed.
Sidenote: I didn’t complete the Mongoose section as I learned most of this course’s material from MDN website and learned about Express and Mongoose from there. Maybe not completing all the assignments has something to do with it?

Here’s the function I wrote in order to complete this challenge

  if(!req.params.date){
    res.json({'unix':new Date().getTime(),
            'utc':new Date().toUTCString()})
  }
  let d=req.params.date;
  if (!isNaN(Number(d))){
      res.json({'unix':+d,
            'utc':new Date(+d).toUTCString()})
  }
  else if (isNaN(new Date(d))){
    res.json({error:"invalid date"})
  }
  else {
    res.json({'unix':new Date(d).getTime(),
              'utc':new Date(d).toUTCString()})
  }
  }```
**Your project link(s)**

solution: http://localhost:52978



**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0</code>

**Challenge:**  Timestamp Microservice

**Link to the challenge:**
https://www.freecodecamp.org/learn/back-end-development-and-apis/back-end-development-and-apis-projects/timestamp-microservice