Skip to content

Commit

Permalink
fix: regression from #6131 (#6370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Hajdrik committed Jan 12, 2021
1 parent 7a045fb commit 9dcd118
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,6 +1,6 @@
function generateConfig(context, amplifyConfig, newAWSConfig) {
function generateConfig(context, newAWSConfig) {
const metadata = context.amplify.getProjectMeta();
amplifyConfig = {
const amplifyConfig = {
UserAgent: 'aws-amplify-cli/2.0',
Version: '1.0',
};
Expand Down Expand Up @@ -84,7 +84,7 @@ function constructApi(metadata, amplifyConfig) {
endpointType: 'REST',
endpoint: resourceMeta.output.RootUrl,
region,
authorizationType: resourceMeta.restrictAccess ? "AMAZON_COGNITO_USER_POOLS" : "AWS_IAM",
authorizationType: resourceMeta.restrictAccess ? 'AMAZON_COGNITO_USER_POOLS' : 'AWS_IAM',
};
}
}
Expand Down

0 comments on commit 9dcd118

Please sign in to comment.