summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-03 22:45:07 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-03 22:45:07 +1100
commite7e3c67a779cfe90d3ca65feb371605e7aed1405 (patch)
tree74bcf09284ad0a38577b08201f17006bf3f8b98d
parentOn db sync/first run, add all the current migrations to migrations table to p... (diff)
downloadserver-e7e3c67a779cfe90d3ca65feb371605e7aed1405.tar.xz
Don't use relative path for db entities. Closes #937
-rw-r--r--src/util/util/Database.ts2
1 files changed, 1 insertions, 1 deletions
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,