Browse Source

Fix formatting of models

pull/25/head
Abheek Dhawan 3 years ago
parent
commit
f3ae5047f4
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 6
      models/generateRound.js
  2. 4
      models/userScore.js

6
models/generateRound.js

@ -1,4 +1,4 @@
const mongoose = require("mongoose"); const mongoose = require('mongoose');
const generatedRoundSchema = new mongoose.Schema({ const generatedRoundSchema = new mongoose.Schema({
htmlContent: { htmlContent: {
@ -16,7 +16,7 @@ const generatedRoundSchema = new mongoose.Schema({
timestamp: { timestamp: {
type: String, type: String,
required: true, required: true,
} },
}); });
module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema); module.exports = mongoose.model('GeneratedRounds', generatedRoundSchema);

4
models/userScore.js

@ -1,4 +1,4 @@
const mongoose = require("mongoose"); const mongoose = require('mongoose');
const userScoreSchema = new mongoose.Schema({ const userScoreSchema = new mongoose.Schema({
authorID: { authorID: {
@ -11,4 +11,4 @@ const userScoreSchema = new mongoose.Schema({
}, },
}); });
module.exports = mongoose.model("UserScore", userScoreSchema); module.exports = mongoose.model('UserScore', userScoreSchema);

Loading…
Cancel
Save