Skip to content

Commit

Permalink
refactor: use stateManager to resolve envName
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett committed May 17, 2023
1 parent c48a093 commit 3cc4708
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export const run = async (context: $TSContext, resourceDefinition: $TSObject, re
.map(({ category, resourceName }) => context.amplify.removeDeploymentSecrets(context, category, resourceName));

await adminModelgen(context, resources);
await deleteEnvironmentParametersForResources(context, context.amplify.getEnvInfo().envName, [
await deleteEnvironmentParametersForResources(context, stateManager.getLocalEnvInfo().envName, [
...resourcesToBeDeleted,
...resourcesToBeSynced.filter((r) => r.sync === 'unlink'),
]);
Expand Down

0 comments on commit 3cc4708

Please sign in to comment.