Change Messaging import frequency
This commit is contained in:
@ -4,10 +4,7 @@ import { InjectRepository } from '@nestjs/typeorm';
|
|||||||
import { In, Repository } from 'typeorm';
|
import { In, Repository } from 'typeorm';
|
||||||
|
|
||||||
import { EnvironmentService } from 'src/engine/integrations/environment/environment.service';
|
import { EnvironmentService } from 'src/engine/integrations/environment/environment.service';
|
||||||
import {
|
import { SubscriptionStatus } from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
|
||||||
BillingSubscription,
|
|
||||||
SubscriptionStatus,
|
|
||||||
} from 'src/engine/core-modules/billing/entities/billing-subscription.entity';
|
|
||||||
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@ -15,7 +12,6 @@ export class BillingService {
|
|||||||
protected readonly logger = new Logger(BillingService.name);
|
protected readonly logger = new Logger(BillingService.name);
|
||||||
constructor(
|
constructor(
|
||||||
private readonly environmentService: EnvironmentService,
|
private readonly environmentService: EnvironmentService,
|
||||||
@InjectRepository(BillingSubscription, 'core')
|
|
||||||
@InjectRepository(Workspace, 'core')
|
@InjectRepository(Workspace, 'core')
|
||||||
private readonly workspaceRepository: Repository<Workspace>,
|
private readonly workspaceRepository: Repository<Workspace>,
|
||||||
) {}
|
) {}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {
|
|||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
repeat: {
|
repeat: {
|
||||||
every: 10000,
|
every: 30000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user