Skip to content

Commit 81d6622

Browse files
committed
docs(codegen): add await for client.operationName call
1 parent af83948 commit 81d6622

File tree

1 file changed

+1
-1
lines changed
  • codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen

1 file changed

+1
-1
lines changed

codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/README.md.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const client = new AWS.${serviceId}({ region: "REGION" });
127127

128128
// async/await.
129129
try {
130-
const data = client.${operationName}(params);
130+
const data = await client.${operationName}(params);
131131
// process data.
132132
} catch (error) {
133133
// error handling.

0 commit comments

Comments
 (0)