diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-02-03 22:45:07 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-02-03 22:45:07 +1100 |
commit | e7e3c67a779cfe90d3ca65feb371605e7aed1405 (patch) | |
tree | 74bcf09284ad0a38577b08201f17006bf3f8b98d /src | |
parent | On db sync/first run, add all the current migrations to migrations table to p... (diff) | |
download | server-e7e3c67a779cfe90d3ca65feb371605e7aed1405.tar.xz |
Don't use relative path for db entities. Closes #937
Diffstat (limited to 'src')
-rw-r--r-- | src/util/util/Database.ts | 2 |
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, |