🐛 fix body parse treating null not as undefined (except for icons/avatars)

This commit is contained in:
Flam3rboy
2021-09-17 23:42:40 +02:00
parent dbcd6ec6f9
commit c20f4b4ef5
10 changed files with 88 additions and 76 deletions

View File

@@ -1,10 +1,11 @@
const fs = require("fs");
const path = require("path");
const { FosscordServer } = require("../dist/Server");
const Server = new FosscordServer({ port: 3001 });
global.server = Server;
module.exports = async () => {
try {
fs.unlinkSync(`${__dirname}/../database.db`);
fs.unlinkSync(path.join(__dirname, "..", "database.db"));
} catch {}
return await Server.start();
};