summary refs log tree commit diff
path: root/api/scripts/globalSetup.js
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-18 08:03:52 +0200
committerGitHub <noreply@github.com>2021-09-18 08:03:52 +0200
commit5d6fa7697a2f3c59768859ff85d92adf9563d685 (patch)
treeb54ac11ef657d679b1387d85bf2c4ef462069d79 /api/scripts/globalSetup.js
parentFix icon, owner_id change and channel deletion for group DMs (diff)
parent:bug: fix body parse treating null not as undefined (except for icons/avatars) (diff)
downloadserver-5d6fa7697a2f3c59768859ff85d92adf9563d685.tar.xz
Merge branch 'fosscord:master' into fix-dm
Diffstat (limited to 'api/scripts/globalSetup.js')
-rw-r--r--api/scripts/globalSetup.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/scripts/globalSetup.js b/api/scripts/globalSetup.js

index 76cd8e0d..98e70fb9 100644 --- a/api/scripts/globalSetup.js +++ b/api/scripts/globalSetup.js
@@ -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(); };