From c97f75a9823ef435c2df0770bd768d83e0d8e1b2 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Wed, 29 Sep 2021 21:43:41 +0200 Subject: [PATCH] Finishes now use string instead of IDs. --- schemas/Finish.js | 4 ++-- schemas/TeamFinish.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/schemas/Finish.js b/schemas/Finish.js index 072ad44..15d2a4a 100644 --- a/schemas/Finish.js +++ b/schemas/Finish.js @@ -1,11 +1,11 @@ import mongoose from 'mongoose' const Finish = new mongoose.Schema({ - map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, + map: String, time: Number, date: Date, serverLocation: String, - player: { type: mongoose.Schema.ObjectId, ref: 'Player' } + player: String }) export default mongoose.model("Finish", Finish) \ No newline at end of file diff --git a/schemas/TeamFinish.js b/schemas/TeamFinish.js index 89fc1d7..f05033a 100644 --- a/schemas/TeamFinish.js +++ b/schemas/TeamFinish.js @@ -1,11 +1,11 @@ import mongoose from 'mongoose' const TeamFinish = new mongoose.Schema({ - map: { type: mongoose.Schema.ObjectId, ref: 'Level' }, + map: String, time: Number, date: Date, serverLocation: String, - players: [{ type: mongoose.Schema.ObjectId, ref: 'Player' }] + players: [ String ] }) export default mongoose.model("TeamFinish", TeamFinish) \ No newline at end of file