File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 11import { ForbiddenException , Injectable , ServiceUnavailableException } from '@nestjs/common' ;
2- import { getReleaseInfo } from '@opendatacapture/release-info' ;
32import { type CreateAdminData } from '@opendatacapture/schemas/setup' ;
43import type { InitAppOptions , SetupState , UpdateSetupStateData } from '@opendatacapture/schemas/setup' ;
54
@@ -31,7 +30,7 @@ export class SetupService {
3130 isExperimentalFeaturesEnabled : Boolean ( savedOptions ?. isExperimentalFeaturesEnabled ) ,
3231 isGatewayEnabled : this . configurationService . get ( 'GATEWAY_ENABLED' ) ,
3332 isSetup : Boolean ( savedOptions ?. isSetup ) ,
34- release : import . meta . release ?? ( await getReleaseInfo ( ) ) ,
33+ release : __RELEASE__ ,
3534 uptime : Math . round ( process . uptime ( ) )
3635 } satisfies SetupState ;
3736 }
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/consistent-type-definitions */
2-
31import type { ReleaseInfo } from '@opendatacapture/schemas/setup' ;
42
53declare global {
6- interface ImportMeta {
7- readonly release ?: ReleaseInfo ;
8- }
4+ const __RELEASE__ : ReleaseInfo ;
95}
You can’t perform that action at this time.
0 commit comments