feat: remove cron add logs
This commit is contained in:
parent
ec0259d23e
commit
3db361367b
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue