mirror of
https://github.com/immich-app/immich.git
synced 2025-01-24 04:32:45 +01:00
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
|
import { Injectable } from '@nestjs/common';
|
||
|
import { getVectorExtension } from 'src/database.config';
|
||
|
import { EnvData, IConfigRepository } from 'src/interfaces/config.interface';
|
||
|
|
||
|
@Injectable()
|
||
|
export class ConfigRepository implements IConfigRepository {
|
||
|
getEnv(): EnvData {
|
||
|
return {
|
||
|
database: {
|
||
|
skipMigrations: process.env.DB_SKIP_MIGRATIONS === 'true',
|
||
|
vectorExtension: getVectorExtension(),
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
}
|