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({
|
@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 {}
|
||||||
|
|
|
||||||
|
|
@ -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 {}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue