@@ -90,10 +90,13 @@ export class AppService extends AbstractService implements OnApplicationBootstra
9090 public async onApplicationBootstrap ( ) : Promise < void > {
9191 this . logger . debug ( 'Application service bootstrap starting...' ) ;
9292
93- for ( const project of Object . values ( ProjectsList ) ) {
94- this . logger . verbose ( `Checking for updates for project: ${ project } ` ) ;
95-
96- await this . fetchGithubRelease ( project ) ;
93+ if ( process . env . NODE_ENV === 'development' ) {
94+ this . logger . warn ( 'Skipping GitHub release fetch in development mode.' ) ;
95+ } else {
96+ for ( const project of Object . values ( ProjectsList ) ) {
97+ this . logger . verbose ( `Checking for updates for project: ${ project } ` ) ;
98+ await this . fetchGithubRelease ( project ) ;
99+ }
97100 }
98101
99102 this . logger . log ( 'Application service bootstrap completed.' ) ;
@@ -113,10 +116,13 @@ export class AppService extends AbstractService implements OnApplicationBootstra
113116 public async handleCron ( ) : Promise < void > {
114117 this . logger . debug ( 'Cron job started.' ) ;
115118
116- for ( const project of Object . values ( ProjectsList ) ) {
117- this . logger . verbose ( `Checking for updates for project: ${ project } ` ) ;
118-
119- await this . fetchGithubRelease ( project ) ;
119+ if ( process . env . NODE_ENV === 'development' ) {
120+ this . logger . warn ( 'Skipping GitHub release fetch in development mode.' ) ;
121+ } else {
122+ for ( const project of Object . values ( ProjectsList ) ) {
123+ this . logger . verbose ( `Checking for updates for project: ${ project } ` ) ;
124+ await this . fetchGithubRelease ( project ) ;
125+ }
120126 }
121127
122128 this . logger . debug ( 'Cron job completed.' ) ;
0 commit comments