Skip to content

Commit

Permalink
upd delete ns for issuers
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jul 26, 2023
1 parent 2610fa8 commit df24602
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/services/workflow/delete-namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export const DeleteNamespace = async (

const activity = await DeleteNamespaceRecordActivity(context, ns);

const gwaService = new GWAService(process.env.GWA_API_URL);
await gwaService.deleteAllGatewayConfiguration(subjectToken, ns);
//const gwaService = new GWAService(process.env.GWA_API_URL);
//await gwaService.deleteAllGatewayConfiguration(subjectToken, ns);

const envs = await lookupEnvironmentsByNS(context, ns);
const ids = envs.map((e: Environment) => e.id);
Expand All @@ -146,5 +146,9 @@ export const DeleteNamespace = async (

await deleteRecords(context, 'Product', { namespace: ns }, true, ['id']);

await deleteRecords(context, 'CredentialIssuer', { namespace: ns }, true, [
'id',
]);

await updateActivity(context.sudo(), activity.id, 'success', undefined);
};

0 comments on commit df24602

Please sign in to comment.