From 5be1b1fe48bbb999dafb5e5dfcce3664a93092e4 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Tue, 30 Mar 2021 18:53:03 +0530 Subject: [PATCH] fix brackets model name --- src/models/brackets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/brackets.js b/src/models/brackets.js index 9e4fe4f..a19ae31 100644 --- a/src/models/brackets.js +++ b/src/models/brackets.js @@ -1,6 +1,6 @@ const { Schema, model } = require('mongoose') -const streams = new Schema({ +const brackets = new Schema({ name: { type: String, required: true, @@ -15,6 +15,6 @@ const streams = new Schema({ }], }) -const Stream = model('Streams', streams) +const Bracket = model('Brackets', brackets) -module.exports = Stream \ No newline at end of file +module.exports = Bracket \ No newline at end of file