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: {