Skip to content

Commit 34da10a

Browse files
committed
Skip disabled games when queueing Reddit posts
Don't queue posts for devs of games with config.live falsy.
1 parent e25381d commit 34da10a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ const run = async function run () {
121121

122122
gamesResponse.body.data.forEach( ( gameConfig ) => {
123123
if ( gameConfig.config && gameConfig.config.sources ) {
124+
// Disabled game (config.live falsy) — don't index its devs.
125+
if ( gameConfig.config.live === 0 || gameConfig.config.live === false ) {
126+
return;
127+
}
128+
124129
gameData[ gameConfig.identifier ] = gameConfig.config.sources;
125130
}
126131
} );

0 commit comments

Comments
 (0)