- Aggiornato node.js alla versione 22.18.1
- Aggiornato tutti i pacchetti del server all'ultima versione. - passato mongoose da versione 5 a versione 6
This commit is contained in:
@@ -91,7 +91,7 @@ const { ObjectId } = require('mongodb');
|
||||
const todos = [
|
||||
{
|
||||
_id: mynewID,
|
||||
category: ObjectId(),
|
||||
category: new ObjectId(),
|
||||
statustodo: 0,
|
||||
completed_at: new Date(),
|
||||
created_at: new Date(),
|
||||
@@ -107,7 +107,7 @@ const todos = [
|
||||
userId: users[0]._id,
|
||||
}, {
|
||||
_id: new ObjectId(),
|
||||
category: ObjectId(mynewID),
|
||||
category: new ObjectId(mynewID),
|
||||
statustodo: 0,
|
||||
completed_at: new Date(),
|
||||
created_at: new Date(),
|
||||
@@ -122,7 +122,7 @@ const todos = [
|
||||
userId: users[1]._id,
|
||||
}, {
|
||||
_id: new ObjectId(),
|
||||
category: ObjectId(mynewID),
|
||||
category: new ObjectId(mynewID),
|
||||
statustodo: 0,
|
||||
completed_at: new Date(),
|
||||
created_at: new Date(),
|
||||
@@ -137,7 +137,7 @@ const todos = [
|
||||
userId: users[2]._id,
|
||||
}, { // RECORD CHE VERRA' UTILIZZATO PER AGGIUNGERE UN NUOVO TASK
|
||||
_id: new ObjectId(),
|
||||
category: ObjectId(mynewID),
|
||||
category: new ObjectId(mynewID),
|
||||
statustodo: 0,
|
||||
completed_at: new Date(),
|
||||
created_at: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user