Fixed "double time" in schemas.

This commit is contained in:
BurnyLlama 2021-09-29 21:03:30 +02:00
parent 78fec963f1
commit ffbe896178
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import mongoose from 'mongoose'
const Finish = new mongoose.Schema({ const Finish = new mongoose.Schema({
map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, map: { type: mongoose.Schema.ObjectId, ref: 'Level' },
time: Number, time: Number,
time: Date, date: Date,
player: { type: mongoose.Schema.ObjectId, ref: 'Player' } player: { type: mongoose.Schema.ObjectId, ref: 'Player' }
}) })

View File

@ -3,7 +3,7 @@ import mongoose from 'mongoose'
const TeamFinish = new mongoose.Schema({ const TeamFinish = new mongoose.Schema({
map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, map: { type: mongoose.Schema.ObjectId, ref: 'Level' },
time: Number, time: Number,
time: Date, date: Date,
players: [{ type: mongoose.Schema.ObjectId, ref: 'Player' }] players: [{ type: mongoose.Schema.ObjectId, ref: 'Player' }]
}) })