Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamarcke committed Sep 19, 2024
2 parents dfe36e9 + c2a652b commit 0b912bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ services:
PROVIDER_TWITTER_CLIENT_ID: ${PROVIDER_TWITTER_CLIENT_ID}
PROVIDER_TWITTER_CLIENT_SECRET: ${PROVIDER_TWITTER_CLIENT_SECRET}
STEAM_API_KEY: ${STEAM_API_KEY}
TWITCH_CLIENT_ID: ${TWITCH_CLIENT_ID}
TWITCH_CLIENT_SECRET: ${TWITCH_CLIENT_SECRET}


healthcheck:
Expand Down
6 changes: 6 additions & 0 deletions src/sync/igdb/igdb-sync.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ export class IgdbSyncProcessor extends WorkerHostProcessor {
* @private
*/
private registerSyncJob() {
if (process.env.NODE_ENV !== "production") {
this.logger.warn(
"Aborted IGDB Sync job registering for non-production environments. To re-enable, comment this code in IgdbSyncProcessor#registerSyncJob",
);
return;
}
this.igdbSyncQueue
.add(IGDB_SYNC_FETCH_JOB_NAME, undefined, {
repeat: {
Expand Down

0 comments on commit 0b912bc

Please sign in to comment.