mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-26 19:33:26 +00:00
Fixed config is not defined error on auth.js
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -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": {
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user