From 9854fb2f3774e954c5448267db1a207b939455de Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 1 May 2021 23:09:22 -0500 Subject: [PATCH] Update package.json to reflect new file names --- bot/mongooseModels/mongooseGeneratedRoundModel.js | 14 ++++++++++++++ bot/package.json | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 bot/mongooseModels/mongooseGeneratedRoundModel.js diff --git a/bot/mongooseModels/mongooseGeneratedRoundModel.js b/bot/mongooseModels/mongooseGeneratedRoundModel.js new file mode 100644 index 0000000..b0e9515 --- /dev/null +++ b/bot/mongooseModels/mongooseGeneratedRoundModel.js @@ -0,0 +1,14 @@ +const mongoose = require("mongoose"); + +const generatedRoundSchema = new mongoose.Schema({ + htmlContent: { + type: String, + required: true, + }, + requestedBy: { + type: String, + required: true, + }, +}); + +module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema); diff --git a/bot/package.json b/bot/package.json index ac6dc2d..c1b06cb 100644 --- a/bot/package.json +++ b/bot/package.json @@ -10,13 +10,13 @@ }, "name": "awscibo", "version": "0.4.1", - "main": "awesomescibo.mjs", + "main": "awesomescibo.js", "bin": { - "awscibo": "./awesomescibo.mjs" + "awscibo": "./awesomescibo.js" }, "scripts": { - "test": "node awesomescibo.mjs randomtoken", - "start": "nodemon awesomescibo.mjs" + "test": "node awesomescibo.js randomtoken", + "start": "nodemon awesomescibo.js" }, "keywords": [ "discord",