mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-03 19:45:48 +00:00
🐛 fix body parse treating null not as undefined (except for icons/avatars)
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user