From e7e3c67a779cfe90d3ca65feb371605e7aed1405 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 3 Feb 2023 22:45:07 +1100 Subject: Don't use relative path for db entities. Closes #937 --- src/util/util/Database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts index d4509f67..64d7ca14 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts @@ -48,7 +48,7 @@ const DataSourceOptions = new DataSource({ charset: "utf8mb4", url: isSqlite ? undefined : dbConnectionString, database: isSqlite ? dbConnectionString : undefined, - entities: ["dist/util/entities/*.js"], + entities: [path.join(__dirname, "..", "entities", "*.js")], synchronize: !!process.env.DB_SYNC, logging: false, bigNumberStrings: false, -- cgit 1.4.1