@aws-amplify/data-schema 0.13.14 → 0.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -164,8 +164,8 @@ function transformFunctionHandler(handlers, callSignature) {
|
|
|
164
164
|
gqlHandlerContent += `@function(name: "${handlerData}") `;
|
|
165
165
|
}
|
|
166
166
|
else if (typeof handlerData.getInstance === 'function') {
|
|
167
|
-
const fnBaseName = `
|
|
168
|
-
const fnNameSuffix = idx === 0 ? '' :
|
|
167
|
+
const fnBaseName = `Fn${capitalize(callSignature)}`;
|
|
168
|
+
const fnNameSuffix = idx === 0 ? '' : `${idx + 1}`;
|
|
169
169
|
const fnName = fnBaseName + fnNameSuffix;
|
|
170
170
|
lambdaFunctionDefinition[fnName] = handlerData;
|
|
171
171
|
gqlHandlerContent += `@function(name: "${fnName}") `;
|