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({
imports: [DatabaseModule, ScheduleModule.forRoot(), BullMqModule],
controllers: [],
providers: [CheckStars, SyncTrending],
providers: [...(!process.env.IS_GENERAL ? [CheckStars, SyncTrending] : [])],
})
export class CronModule {}

View File

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

View File

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