File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { MovieHelperModule } from '@pct-org/scraper/movie-helper'
8
8
9
9
import { TraktModule } from '@pct-org/services/trakt'
10
10
import { TmdbModule } from '@pct-org/services/tmdb'
11
+ import { FanartModule } from '@pct-org/services/fanart'
12
+ import { OmdbModule } from '@pct-org/services/omdb'
11
13
12
14
import { ConfigModule } from './shared/config/config.module'
13
15
import { ConfigService } from './shared/config/config.service'
@@ -23,6 +25,8 @@ import { ProvidersService } from './providers/providers.service'
23
25
24
26
TraktModule ,
25
27
TmdbModule ,
28
+ FanartModule ,
29
+ OmdbModule ,
26
30
27
31
ProvidersModule ,
28
32
@@ -54,15 +58,13 @@ export class ScraperModule implements OnApplicationBootstrap {
54
58
) {
55
59
}
56
60
57
- protected onApplicationBootstrap ( ) : void {
61
+ public onApplicationBootstrap ( ) : void {
58
62
const job = new CronJob ( this . configService . get ( 'CRON_TIME' ) , this . scrapeConfigs )
59
63
60
64
this . schedulerRegistry . addCronJob ( ScraperModule . JOB_NAME , job )
61
65
job . start ( )
62
66
63
67
this . logger . log ( `Enabled cron on '${ this . configService . get ( 'CRON_TIME' ) } '` )
64
-
65
- this . scrapeConfigs ( )
66
68
}
67
69
68
70
private async scrapeConfigs ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments