mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
all-files: inject database connection, create title entity
This commit is contained in:
@@ -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],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user