diff --git a/index.js b/index.js index ad289b4..fee1438 100644 --- a/index.js +++ b/index.js @@ -88,7 +88,7 @@ fs.readdirSync("./routes").forEach(fileName => { app.get("/unknown", (req, res) => { log.debug('GET /unknown endpoint called'); - res.json({ msg: "Reboot Backend - Made by Burlone" }); + res.json({ msg: "Reload Backend - Made by Burlone" }); }); app.listen(PORT, () => { diff --git a/package-lock.json b/package-lock.json index f59b69b..aef0611 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "reloadbackend", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "reloadbackend", - "version": "1.0.1", + "version": "1.0.2", "license": "GPL-3.0", "dependencies": { "axios": "^1.7.7", diff --git a/package.json b/package.json index ccc6c00..cdd9efc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reloadbackend", - "version": "1.0.1", + "version": "1.0.2", "description": "Created by Burlone, This is a modded backend, all main backend credits to lawin", "main": "index.js", "dependencies": { diff --git a/routes/auth.js b/routes/auth.js index 4cd6f2f..e6f1b25 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -6,6 +6,7 @@ const bcrypt = require("bcrypt"); const error = require("../structs/error.js"); const functions = require("../structs/functions.js"); const log = require("../structs/log.js"); +const config = require('../Config/config.json') const tokenCreation = require("../tokenManager/tokenCreation.js"); const { verifyToken, verifyClient } = require("../tokenManager/tokenVerify.js"); diff --git a/structs/checkforupdate.js b/structs/checkforupdate.js index 0fa4f72..a011179 100644 --- a/structs/checkforupdate.js +++ b/structs/checkforupdate.js @@ -10,8 +10,7 @@ class CheckForUpdate { const currentVersionFormatted = currentVersion.replace(/\./g, ""); if (parseFloat(latestVersion) > parseFloat(currentVersionFormatted)) { - const message = `A new version of the Backend has been released! ${currentVersion} -> ${packageJson.version}`; - log.checkforupdate(`${message}\nDownload it from the GitHub repo.`); + log.checkforupdate(`A new version of the Backend has been released! ${currentVersion} -> ${packageJson.version}, Download it from the GitHub repo.`); } } }