@@ -6,8 +6,8 @@ import { Injectable, Logger } from '@nestjs/common';
66import { ICommandResponse } from '@common/types/command-response.type' ;
77import { ERRORS } from '@libs/contracts/constants/errors' ;
88
9- import { StartAllNodesByProfileQueueService } from '@queue/start-all-nodes-by-profile ' ;
10- import { InternalSquadActionsQueueService } from '@queue/internal-squad-actions ' ;
9+ import { SquadsQueueService } from '@queue/_squads ' ;
10+ import { NodesQueuesService } from '@queue/_nodes ' ;
1111
1212import { GetInternalSquadByUuidResponseModel } from './models/get-internal-squad-by-uuid.response.model' ;
1313import { DeleteInternalSquadResponseModel } from './models/delete-internal-squad-by-uuid.response.model' ;
@@ -24,8 +24,8 @@ export class InternalSquadService {
2424
2525 constructor (
2626 private readonly internalSquadRepository : InternalSquadRepository ,
27- private readonly startAllNodesByProfileQueueService : StartAllNodesByProfileQueueService ,
28- private readonly internalSquadActionsQueueService : InternalSquadActionsQueueService ,
27+ private readonly nodesQueuesService : NodesQueuesService ,
28+ private readonly squadsQueueService : SquadsQueueService ,
2929 ) { }
3030
3131 public async getInternalSquads ( ) : Promise < ICommandResponse < GetInternalSquadsResponseModel > > {
@@ -197,7 +197,7 @@ export class InternalSquadService {
197197
198198 await Promise . all (
199199 affectedConfigProfiles . map ( ( profileUuid ) =>
200- this . startAllNodesByProfileQueueService . startAllNodesByProfile ( {
200+ this . nodesQueuesService . startAllNodesByProfile ( {
201201 profileUuid,
202202 emitter : 'updateInternalSquad' ,
203203 } ) ,
@@ -264,7 +264,7 @@ export class InternalSquadService {
264264 const deleted = await this . internalSquadRepository . deleteByUUID ( uuid ) ;
265265
266266 for ( const profileUuid of includedProfiles ) {
267- await this . startAllNodesByProfileQueueService . startAllNodesByProfile ( {
267+ await this . nodesQueuesService . startAllNodesByProfile ( {
268268 profileUuid,
269269 emitter : 'deleteInternalSquad' ,
270270 } ) ;
@@ -296,7 +296,7 @@ export class InternalSquadService {
296296 } ;
297297 }
298298
299- await this . internalSquadActionsQueueService . addUsersToInternalSquad ( {
299+ await this . squadsQueueService . addUsersToInternalSquad ( {
300300 internalSquadUuid : uuid ,
301301 } ) ;
302302
@@ -326,7 +326,7 @@ export class InternalSquadService {
326326 } ;
327327 }
328328
329- await this . internalSquadActionsQueueService . removeUsersFromInternalSquad ( {
329+ await this . squadsQueueService . removeUsersFromInternalSquad ( {
330330 internalSquadUuid : uuid ,
331331 } ) ;
332332
0 commit comments