Skip to content

Commit

Permalink
call CredentialsService.delete again from the ldap command
Browse files Browse the repository at this point in the history
  • Loading branch information
despairblue committed Jan 14, 2025
1 parent 1f5d8c2 commit 09115e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/commands/ldap/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { UM_FIX_INSTRUCTION } from '@/constants';
import { CredentialsService } from '@/credentials/credentials.service';
import { AuthIdentityRepository } from '@/databases/repositories/auth-identity.repository';
import { AuthProviderSyncHistoryRepository } from '@/databases/repositories/auth-provider-sync-history.repository';
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
import { ProjectRelationRepository } from '@/databases/repositories/project-relation.repository';
import { ProjectRepository } from '@/databases/repositories/project.repository';
import { SettingsRepository } from '@/databases/repositories/settings.repository';
Expand Down Expand Up @@ -111,7 +110,7 @@ export class Reset extends BaseCommand {
}

for (const credential of ownedCredentials) {
await Container.get(CredentialsRepository).remove(credential);
await Container.get(CredentialsService).delete(owner, credential.id);
}

await Container.get(AuthProviderSyncHistoryRepository).delete({ providerType: 'ldap' });
Expand Down

0 comments on commit 09115e0

Please sign in to comment.