diff --git a/schemas/Finish.js b/schemas/Finish.js index 2d3fe69..03cf758 100644 --- a/schemas/Finish.js +++ b/schemas/Finish.js @@ -3,7 +3,7 @@ import mongoose from 'mongoose' const Finish = new mongoose.Schema({ map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, time: Number, - time: Date, + date: Date, player: { type: mongoose.Schema.ObjectId, ref: 'Player' } }) diff --git a/schemas/TeamFinish.js b/schemas/TeamFinish.js index 83ae8df..af54fc5 100644 --- a/schemas/TeamFinish.js +++ b/schemas/TeamFinish.js @@ -3,7 +3,7 @@ import mongoose from 'mongoose' const TeamFinish = new mongoose.Schema({ map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, time: Number, - time: Date, + date: Date, players: [{ type: mongoose.Schema.ObjectId, ref: 'Player' }] })