refactor(server): build support env (#13163)

This commit is contained in:
Jason Rasmussen 2024-10-03 16:33:43 -04:00 committed by GitHub
parent 3ddb5b8733
commit 0eb77147ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 18 deletions

View file

@ -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);