Change Messaging import frequency

This commit is contained in:
Charles Bochet 2024-07-01 14:22:31 +02:00
parent 8c33d91734
commit b371c77284
2 changed files with 2 additions and 6 deletions

View File

@ -4,10 +4,7 @@ import { InjectRepository } from '@nestjs/typeorm';
import { In, Repository } from 'typeorm';
import { EnvironmentService } from 'src/engine/integrations/environment/environment.service';
import {
BillingSubscription,
SubscriptionStatus,
} from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
import { SubscriptionStatus } from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
@Injectable()
@ -15,7 +12,6 @@ export class BillingService {
protected readonly logger = new Logger(BillingService.name);
constructor(
private readonly environmentService: EnvironmentService,
@InjectRepository(BillingSubscription, 'core')
@InjectRepository(Workspace, 'core')
private readonly workspaceRepository: Repository<Workspace>,
) {}

View File

@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {
undefined,
{
repeat: {
every: 10000,
every: 30000,
},
},
);