Fixed Database creation, The error was that there were 2 simultaenous Database connections, causing an error when both attempted to connect at once.

This commit is contained in:
Lynixenn
2025-03-30 22:59:19 +02:00
parent fb916e9e9f
commit 8f27246234
8 changed files with 52 additions and 73 deletions

View File

@@ -55,7 +55,7 @@ type ApiResponse = {
};
// database creation if missing, runs here because this is the main file executed by the API.
db_utils.ensureDatabaseExists();
await db_utils.ensureDatabaseExists();
// +++ ROUTER ------------------------------------------------------- //
// Creates the routes for the API server.