diff --git a/src/ormconfig.ts b/src/ormconfig.ts index 6b7297b2c3..a575f994e2 100644 --- a/src/ormconfig.ts +++ b/src/ormconfig.ts @@ -1,5 +1,6 @@ import * as fs from 'fs'; import config from './config'; +import { entities as charts } from './services/chart/entities'; const json = { type: 'postgres', @@ -9,7 +10,10 @@ const json = { password: config.db.pass, database: config.db.db, extra: config.db.extra, - entities: ['src/models/entities/*.ts'], + entities: [ + 'src/models/entities/*.ts', + ...charts as any + ], migrations: ['migration/*.ts'], cli: { migrationsDir: 'migration'