Skip to content

Commit a442974

Browse files
TrickSumoyaythomas
authored andcommitted
Await context.createCallback for approval handling
1 parent 2d487ad commit a442974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/typescript/sdk-reference/serialization/callback-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const approvalSerdes: Omit<Serdes<ApprovalResult>, "serialize"> = {
1818

1919
export const handler = withDurableExecution(
2020
async (event: unknown, context: DurableContext) => {
21-
const [approval, callbackId] = context.createCallback("await-approval", {
21+
const [approval, callbackId] = await context.createCallback("await-approval", {
2222
serdes: approvalSerdes,
2323
});
2424

0 commit comments

Comments
 (0)