From ffbe896178c609e7d390b2236c6a028a61f09e06 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Wed, 29 Sep 2021 21:03:30 +0200 Subject: [PATCH] Fixed "double time" in schemas. --- schemas/Finish.js | 2 +- schemas/TeamFinish.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' }] })