π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix cron
Nevo Davidd91aa3edf952
diff --git a/apps/cron/src/cron.module.ts b/apps/cron/src/cron.module.tsindex b5f9bc8fb..81bacd008 100644--- a/apps/cron/src/cron.module.ts+++ b/apps/cron/src/cron.module.ts@@ -1,11 +1,22 @@import { Module } from '@nestjs/common';import { ScheduleModule } from '@nestjs/schedule';-import {RefreshTokens} from "@gitroom/cron/tasks/refresh.tokens";-import {CheckStars} from "@gitroom/cron/tasks/check.stars";+import { RefreshTokens } from '@gitroom/cron/tasks/refresh.tokens';+import { CheckStars } from '@gitroom/cron/tasks/check.stars';+import { DatabaseModule } from '@gitroom/nestjs-libraries/database/prisma/database.module';+import { RedisModule } from '@gitroom/nestjs-libraries/redis/redis.module';+import { BullMqModule } from '@gitroom/nestjs-libraries/bull-mq-transport/bull-mq.module';+import { ioRedis } from '@gitroom/nestjs-libraries/redis/redis.service';@Module({- imports: [ScheduleModule.forRoot()],- controllers: [],- providers: [RefreshTokens, CheckStars],+ imports: [+ DatabaseModule,+ ScheduleModule.forRoot(),+ RedisModule,+ BullMqModule.forRoot({+ connection: ioRedis,+ }),+ ],+ controllers: [],+ providers: [RefreshTokens, CheckStars],})export class CronModule {}