Fixed "double time" in schemas.
This commit is contained in:
parent
78fec963f1
commit
ffbe896178
|
@ -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' }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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' }]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user