Skip to content

Commit 3db3613

Browse files
author
Nevo David
committed
feat: remove cron add logs
1 parent ec0259d commit 3db3613

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

apps/cron/src/cron.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport-new/bu
88
@Module({
99
imports: [DatabaseModule, ScheduleModule.forRoot(), BullMqModule],
1010
controllers: [],
11-
providers: [CheckStars, SyncTrending],
11+
providers: [...(!process.env.IS_GENERAL ? [CheckStars, SyncTrending] : [])],
1212
})
1313
export class CronModule {}

apps/workers/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport-new/bu
88

99
@Module({
1010
imports: [DatabaseModule, BullMqModule],
11-
controllers: [StarsController, PostsController],
11+
controllers: [...!process.env.IS_GENERAL ? [StarsController] : [], PostsController],
1212
providers: [TrendingService],
1313
})
1414
export class AppModule {}

libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class PostsService {
135135
`An error occurred while posting on ${firstPost.integration?.providerIdentifier}`,
136136
true
137137
);
138+
138139
return;
139140
}
140141

@@ -160,6 +161,8 @@ export class PostsService {
160161
}`,
161162
true
162163
);
164+
165+
console.error('[Error] posting on', firstPost.integration?.providerIdentifier, err);
163166
}
164167
}
165168

0 commit comments

Comments
 (0)