diff --git a/index.js b/index.js index 22b4c27..6fcc2b7 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,7 @@ const password_helper = require ('@sapphirecode/password-helper'); const api = require ('./lib/api'); const http_proxy = require ('express-http-proxy'); const history_fallback = require ('connect-history-api-fallback'); +const fs = require ('fs'); const salt = crypto.create_salt (); const hash = crypto.hash_sha512 ('asd', salt); @@ -22,6 +23,7 @@ const user = { }; (async () => { + fs.unlinkSync ('db.sqlite'); await db.init (true); const app = express ();