File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ export class BackendsService extends AbstractQueueProcessor {
292292 } ) ;
293293 }
294294 identities . push ( {
295- action : ActionType . IDENTITY_ENABLE ,
295+ action : ActionType . IDENTITY_DISABLE ,
296296 identity,
297297 } ) ;
298298 }
@@ -366,7 +366,7 @@ export class BackendsService extends AbstractQueueProcessor {
366366 } else {
367367 result = await this . disableIdentities ( [ payload ] , options ) ;
368368 }
369- return result [ 0 ] ;
369+ return result [ payload ] ;
370370 }
371371 public async executeJob (
372372 actionType : ActionType ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class IdentitiesActivationService extends AbstractIdentitiesService {
3333 if ( statusChanged ) {
3434 // le dataStaus à changé on envoye l info aux backend et on enregistre l identité
3535 const result = await this . backends . activationIdentity ( identity . _id . toString ( ) , status ) ;
36- if ( result . state === JobState . COMPLETED ) {
36+ if ( result . state === JobState . COMPLETED ) {
3737 await super . update ( identity . _id , identity ) ;
3838 } else {
3939 throw new BadRequestException ( 'Backend failed' ) ;
You can’t perform that action at this time.
0 commit comments