Skip to content

Commit 9d8b421

Browse files
committed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func FromWorkflow[Input any, Output any](f func(polycode.WorkflowContext, Input)
4747

4848
func ExecService(c *gin.Context, tenantId string, partitionKey string, service string, method string,
4949
options polycode.TaskOptions, input any, outputTransform func(any) (any, error)) {
50-
apiCtx, err := apicontext.FromContext(c)
50+
apiCtx, err := apicontext.FromContext(c.Request.Context())
5151
if err != nil {
5252
c.JSON(http.StatusInternalServerError, gin.H{
5353
"error": "Failed to execute controller: " + err.Error(),

0 commit comments

Comments
 (0)