Exercise Tracker: Everything seems to be working but tests are NOT passing! please help!

This is my code:
link: boilerplate-project-exercisetracker - Replit
const express = require(‘express’);
const mongoose = require(‘mongoose’);

const app = express();
const cors = require(‘cors’);
require(‘dotenv’).config();

// Import Mongo DB Atlas model

const exerciseModel = new mongoose.Schema({
id: String,
description: String,
duration: Number,
date: String
}, {versionKey: false});
const Exercise = mongoose.model(“Exercise”, exerciseModel);
const usermodel = new mongoose.Schema({
username: String,
log: [exerciseModel]
}, {versionKey: false});
const User = mongoose.model(“User”, usermodel);
// Mount the body parser as middleware
app.use(express.json());
app.use(express.urlencoded( {extended: true} ));
mongoose.set(‘strictQuery’, true);
// Connect Mongo DB Atlas
mongoose.connect(process.env[“MONGO_URI”], {
useUnifiedTopology: true,
useNewUrlParser: true
});

app.use(cors());

app.use(express.static(‘public’));

app.use((req, res, next) => {
console.log("method: " + req.method + " | path: " + req.path + " | IP - " + req.ip);
next();
});
app.get(‘/’, (req, res) => {
res.sendFile(__dirname + ‘/views/index.html’);
});
app.route(‘/api/users’).get((req, res) => {
User.find({}, (error, data) => {
//console.log(data);
res.json(data);
});
}).post((req, res) => {
// Get username input into form
const potentialUsername = req.body.username;
console.log(“potential username:”, potentialUsername);

// Check to see if the username has already been entered
User.findOne({username: potentialUsername}, (error, data) => {
if (error) {
res.send(“Unknown userID”);
return console.log(error);
}

if (!data) { // If username is not stored yet, create and save a User object
  const newUser = new User({
    username: potentialUsername
  });

  newUser.save((error, data) => {
    if (error) return console.log(error);
    const reducedData = {
      "username": data.username, 
      "_id": data._id
    };
    res.json(reducedData);
    console.log(reducedData);
  });
} else {
  
  console.log(`Username ${potentialUsername} already exists.`);
}

});
});
app.post(‘/api/users/:_id/exercises?’, (req, res) => {
let newExercise = new Exercise({
description: req.body.description,
duration: parseInt(req.body.duration),
date: req.body.date
});

if(req.body.date === ‘’){
newExercise.date = new Date().toISOString().substring(0, 10);
}
User.findByIdAndUpdate(req.body[“:_id”], {$push: {log: newExercise}}, {new: true}, (error, updatedUser) => {
if(!error){
let exerciseObject = {
“_id”: updatedUser.id,
“username”: updatedUser.username,
“duration”: newExercise.duration,
“description”: newExercise.description,
“date”: new Date(newExercise.date).toDateString()
};

    res.json(exerciseObject);

}

});
});

app.get(‘/api/users/:_id/logs’, (req, res) => {

var fromDate = req.query.from;
var toDate = req.query.to;
var limit = req.query.limit;

User.findById(req.query._id, (error, result) => {
let responseObject = result;
console.log(responseObject);
if(!error){
if(fromDate || toDate){
if (fromDate) {
fromDate = new Date(fromDate);
}
if (toDate) {
toDate = new Date(toDate);
}
toDate = toDate.getTime();
fromDate = fromDate.getTime();
responseObject.log = responseObject.log.filter((session) => {
let sessionDate = new Date(session.date).getTime();
return sessionDate >= fromDate && sessionDate <= toDate;
})
}
if(limit){
responseObject.log = responseObject.log.slice(0, parseInt(req.query.limit));
}
responseObject[‘count’] = responseObject.log.length;
res.json(responseObject);
}
});
});
const listener = app.listen(process.env.PORT || 3000, () => {
console.log('Your app is listening on port ’ + listener.address().port)
})