Fixed config is not defined error on auth.js

This commit is contained in:
Burlone
2024-10-07 09:07:26 +02:00
parent 793e7a706b
commit 6a2804889b
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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, () => {
+2 -2
View File
@@ -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",
+1 -1
View File
@@ -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": {
+1
View File
@@ -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");
+1 -2
View File
@@ -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.`);
}
}
}