fix: restore await on metadata call in create-background-task (#2441)
This commit is contained in:
@@ -98,7 +98,7 @@ export function createBackgroundTask(
|
|||||||
...(sessionId ? { sessionId } : {}),
|
...(sessionId ? { sessionId } : {}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
ctx.metadata?.(bgMeta)
|
await ctx.metadata?.(bgMeta)
|
||||||
|
|
||||||
if (ctx.callID) {
|
if (ctx.callID) {
|
||||||
storeToolMetadata(ctx.sessionID, ctx.callID, bgMeta)
|
storeToolMetadata(ctx.sessionID, ctx.callID, bgMeta)
|
||||||
|
|||||||
Reference in New Issue
Block a user