feat: remove cron add logs

This commit is contained in:
Nevo David 2024-09-25 11:12:59 +07:00
parent ec0259d23e
commit 3db361367b
3 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,6 @@ import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport-new/bu
@Module({ @Module({
imports: [DatabaseModule, ScheduleModule.forRoot(), BullMqModule], imports: [DatabaseModule, ScheduleModule.forRoot(), BullMqModule],
controllers: [], controllers: [],
providers: [CheckStars, SyncTrending], providers: [...(!process.env.IS_GENERAL ? [CheckStars, SyncTrending] : [])],
}) })
export class CronModule {} export class CronModule {}

View File

@ -8,7 +8,7 @@ import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport-new/bu
@Module({ @Module({
imports: [DatabaseModule, BullMqModule], imports: [DatabaseModule, BullMqModule],
controllers: [StarsController, PostsController], controllers: [...!process.env.IS_GENERAL ? [StarsController] : [], PostsController],
providers: [TrendingService], providers: [TrendingService],
}) })
export class AppModule {} export class AppModule {}

View File

@ -135,6 +135,7 @@ export class PostsService {
`An error occurred while posting on ${firstPost.integration?.providerIdentifier}`, `An error occurred while posting on ${firstPost.integration?.providerIdentifier}`,
true true
); );
return; return;
} }
@ -160,6 +161,8 @@ export class PostsService {
}`, }`,
true true
); );
console.error('[Error] posting on', firstPost.integration?.providerIdentifier, err);
} }
} }