Skip to content

Commit

Permalink
fix: use userpoolid as indicator for addAwsIamAuthInOutputSchema (#8570)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaySway committed Oct 27, 2021
1 parent ad0cd2b commit 9c86958
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -90,7 +90,11 @@ function getTransformerFactory(
const modelTransformer = new ModelTransformer();
const indexTransformer = new IndexTransformer();
const hasOneTransformer = new HasOneTransformer();
const authTransformer = new AuthTransformer({ authConfig: options?.authConfig, addAwsIamAuthInOutputSchema: false, adminUserPoolID });
const authTransformer = new AuthTransformer({
authConfig: options?.authConfig,
addAwsIamAuthInOutputSchema: !!adminUserPoolID,
adminUserPoolID,
});
const transformerList: TransformerPluginProvider[] = [
modelTransformer,
new FunctionTransformer(),
Expand Down

0 comments on commit 9c86958

Please sign in to comment.