Skip to content

Commit 8da2fcb

Browse files
author
hirsch88
committed
Fix ormconfig issue
1 parent 82987e4 commit 8da2fcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/core/env.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ export const env = {
2222
port: normalizePort(process.env.PORT || '3000'),
2323
banner: toBool(getOsEnv('APP_BANNER')),
2424
dirs: {
25-
migrations: [path.join(__dirname, '..', 'database/migrations/*.ts')],
26-
migrationsDir: path.join(__dirname, '..', 'database/migrations'),
27-
entities: [path.join(__dirname, '..', 'api/**/models/*{.js,.ts}')],
28-
subscribers: [path.join(__dirname, '..', 'api/**/*Subscriber{.js,.ts}')],
29-
controllers: [path.join(__dirname, '..', 'api/**/*Controller{.js,.ts}')],
30-
middlewares: [path.join(__dirname, '..', 'api/**/*Middleware{.js,.ts}')],
31-
interceptors: [path.join(__dirname, '..', 'api/**/*Interceptor{.js,.ts}')],
25+
migrations: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'database/migrations/*.ts'))],
26+
migrationsDir: path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'database/migrations')),
27+
entities: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'api/**/models/*{.js,.ts}'))],
28+
subscribers: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'api/**/*Subscriber{.js,.ts}'))],
29+
controllers: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'api/**/*Controller{.js,.ts}'))],
30+
middlewares: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'api/**/*Middleware{.js,.ts}'))],
31+
interceptors: [path.relative(path.join(process.cwd()), path.join(__dirname, '..', 'api/**/*Interceptor{.js,.ts}'))],
3232
},
3333
},
3434
log: {

0 commit comments

Comments
 (0)