mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): build support env (#13163)
This commit is contained in:
parent
3ddb5b8733
commit
0eb77147ef
5 changed files with 36 additions and 18 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { BadRequestException, Injectable, NotFoundException } from '@nestjs/common';
|
||||
import { getBuildMetadata } from 'src/config';
|
||||
import { serverVersion } from 'src/constants';
|
||||
import { StorageCore } from 'src/cores/storage.core';
|
||||
import { OnEvent } from 'src/decorators';
|
||||
|
|
@ -36,7 +35,7 @@ export class ServerService extends BaseService {
|
|||
|
||||
async getAboutInfo(): Promise<ServerAboutResponseDto> {
|
||||
const version = `v${serverVersion.toString()}`;
|
||||
const buildMetadata = getBuildMetadata();
|
||||
const { buildMetadata } = this.configRepository.getEnv();
|
||||
const buildVersions = await this.serverInfoRepository.getBuildVersions();
|
||||
const licensed = await this.systemMetadataRepository.get(SystemMetadataKey.LICENSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue