From f3ae5047f45a05e4a2da481d55ea766d28fadc65 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 19 Mar 2022 19:34:51 -0500 Subject: [PATCH] Fix formatting of models --- models/generateRound.js | 36 ++++++++++++++++++------------------ models/userScore.js | 20 ++++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/models/generateRound.js b/models/generateRound.js index 164219b..48eb765 100644 --- a/models/generateRound.js +++ b/models/generateRound.js @@ -1,22 +1,22 @@ -const mongoose = require("mongoose"); +const mongoose = require('mongoose'); const generatedRoundSchema = new mongoose.Schema({ - htmlContent: { - type: String, - required: true, - }, - requestedBy: { - type: String, - required: true, - }, - authorTag: { - type: String, - required: true, - }, - timestamp: { - type: String, - required: true, - } + htmlContent: { + type: String, + required: true, + }, + requestedBy: { + type: String, + required: true, + }, + authorTag: { + type: String, + required: true, + }, + timestamp: { + type: String, + required: true, + }, }); -module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema); +module.exports = mongoose.model('GeneratedRounds', generatedRoundSchema); diff --git a/models/userScore.js b/models/userScore.js index 3cf1754..5c069ff 100644 --- a/models/userScore.js +++ b/models/userScore.js @@ -1,14 +1,14 @@ -const mongoose = require("mongoose"); +const mongoose = require('mongoose'); const userScoreSchema = new mongoose.Schema({ - authorID: { - type: String, - required: true, - }, - score: { - type: Number, - required: true, - }, + authorID: { + type: String, + required: true, + }, + score: { + type: Number, + required: true, + }, }); -module.exports = mongoose.model("UserScore", userScoreSchema); +module.exports = mongoose.model('UserScore', userScoreSchema);