all-files: inject database connection, create title entity

This commit is contained in:
jurgis
2022-12-10 14:40:10 +01:00
parent f277d57406
commit 75ba458b59
7 changed files with 41 additions and 4 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import * as env from 'dotenv';
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { LrtCategory } from '../KodiApi/LRT/LrtApiClient/Entity/lrt-category.entity';
import { join } from 'path';
import { TitleEntity } from '../KodiApi/AllFiles/Entity/title.entity';
env.config();
@@ -20,7 +21,7 @@ export class ConfigService {
return {
type: 'sqlite',
database: this.getEnv('DB_PATH'),
entities: [LrtCategory],
entities: [LrtCategory, TitleEntity],
};
}