Skip to content

Commit 3eb717b

Browse files
committed
Support asynchronous service operations
1 parent 2496c28 commit 3eb717b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServerGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static void generateHandlerCase(TypeScriptWriter writer,
143143
+ "this.serdeContextBase);");
144144
writer.closeBlock("}");
145145
writer.openBlock("try {", "} catch(error: unknown) {", () -> {
146-
writer.write("let output = this.service.$L(input, request);", operationSymbol.getName());
146+
writer.write("let output = await this.service.$L(input, request);", operationSymbol.getName());
147147
writer.write("return serializer.serialize(output, this.serdeContextBase);");
148148
});
149149
writer.indent();

0 commit comments

Comments
 (0)