File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,11 @@ export class GameRepositoryCreateService {
124
124
differenceInTime / dayInMs ,
125
125
) ;
126
126
127
- // game already exists and it has been more than thirty days since it's last update
127
+ // game already exists, and it has been more than fifteen days since it's last update
128
128
// this logic only works if the 'updated_at' property is being returned by igdb-sync.
129
- if ( approximateDifferenceInDays >= 30 ) {
129
+ if ( approximateDifferenceInDays >= 15 ) {
130
130
return false ;
131
131
}
132
- const one = 2 ;
133
132
}
134
133
135
134
return true ;
@@ -146,7 +145,9 @@ export class GameRepositoryCreateService {
146
145
const shouldProcess = await this . shouldUpdate ( game ) ;
147
146
148
147
if ( ! shouldProcess ) {
149
- // Do not log here, as most games are skipped after the first run.
148
+ this . logger . log (
149
+ `Skipping game ${ game . id } because it's not recently updated or invalid.` ,
150
+ ) ;
150
151
return ;
151
152
}
152
153
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ function normalizeIgdbResults(results: any[]) {
57
57
return normalizedResults ;
58
58
}
59
59
60
- @Processor ( IGDB_SYNC_QUEUE_NAME , {
61
- concurrency : 300 ,
62
- } )
60
+ @Processor ( IGDB_SYNC_QUEUE_NAME )
63
61
export class IgdbSyncProcessor extends WorkerHostProcessor {
64
62
logger = new Logger ( IgdbSyncProcessor . name ) ;
65
63
You can’t perform that action at this time.
0 commit comments