From c6d1a7498841ee4e1ca8c9b3bd00ee4f69061440 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 05:01:40 +0530 Subject: [PATCH] model issue --- src/models/matches.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/matches.js b/src/models/matches.js index 1a4a5d2..919da0a 100644 --- a/src/models/matches.js +++ b/src/models/matches.js @@ -14,12 +14,12 @@ const gameScores = new Schema({ const matches = new Schema({ orange: { type: Schema.Types.ObjectId, - refs: 'Rosters', + ref: 'Rosters', required: true, }, blue: { type: Schema.Types.ObjectId, - refs: 'Rosters', + ref: 'Rosters', required: true, }, started: {