-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix modify gql schema base case; scope auth notif to v2 #9689
fix: fix modify gql schema base case; scope auth notif to v2 #9689
Conversation
This pull request fixes 1 alert when merging 854a71d into 5ff6fe8 - view on LGTM.com fixed alerts:
|
if (stats.isDirectory()) { | ||
await modifyGraphQLSchemaDirectory(fullPath, modified); | ||
} else if (stats.isFile() && !modified) { | ||
if (stats.isDirectory() && (await modifyGraphQLSchemaDirectory(fullPath))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (stats.isDirectory() && (await modifyGraphQLSchemaDirectory(fullPath))) { | |
if ((await modifyGraphQLSchemaDirectory(fullPath))) { | |
if(stats.isFile()){ | |
fs.appendFile(fullPath, ' '); | |
} | |
return true; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this will work, this will attempt to read files from a non directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah never mind I was thinking about it wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (stats.isDirectory()) { | ||
await modifyGraphQLSchemaDirectory(fullPath, modified); | ||
} else if (stats.isFile() && !modified) { | ||
if (stats.isDirectory() && (await modifyGraphQLSchemaDirectory(fullPath))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this will work, this will attempt to read files from a non directory
👋 Hi, this pull request was referenced in the v7.6.19 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v7.6.19. |
Description of changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.