Skip to content

Commit bc9b37c

Browse files
author
Dane Pilcher
committed
fix: change awsAmplifyEnvironmentName to amplifyBranchName
1 parent 304d3c1 commit bc9b37c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/backend-data/src/convert_js_resolvers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void describe('convertJsResolverDefinition', () => {
200200
'ApiId',
201201
],
202202
},
203-
"';\n ctx.stash.awsAmplifyEnvironmentName = 'NONE';\n return {};\n };\n /**\n * Pipeline resolver response handler\n */\n export const response = (ctx) => {\n return ctx.prev.result;\n };\n ",
203+
"';\n ctx.stash.amplifyBranchName = 'NONE';\n return {};\n };\n /**\n * Pipeline resolver response handler\n */\n export const response = (ctx) => {\n return ctx.prev.result;\n };\n ",
204204
],
205205
],
206206
},

packages/backend-data/src/convert_js_resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const convertJsResolverDefinition = (
6969
*/
7070
export const request = (ctx) => {
7171
ctx.stash.awsAppsyncApiId = '${amplifyApi.apiId}';
72-
ctx.stash.awsAmplifyEnvironmentName = '${amplifyEnvironmentName}';
72+
ctx.stash.amplifyBranchName = '${amplifyEnvironmentName}';
7373
return {};
7474
};
7575
/**

0 commit comments

Comments
 (0)