Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: remove cron add logs

Nevo David3db361367be9
diff --git a/apps/cron/src/cron.module.ts b/apps/cron/src/cron.module.ts
index a44744b9b..4db31e812 100644
--- a/apps/cron/src/cron.module.ts
+++ b/apps/cron/src/cron.module.ts
@@ -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 {}
diff --git a/apps/workers/src/app/app.module.ts b/apps/workers/src/app/app.module.ts
index efaf1029f..20d2e3817 100644
--- a/apps/workers/src/app/app.module.ts
+++ b/apps/workers/src/app/app.module.ts
@@ -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 {}
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
index 1ec0b8447..63487f511 100644
--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
@@ -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);
}
}