We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2696fc7 commit 9d8b421Copy full SHA for 9d8b421
api/handler.go
@@ -47,7 +47,7 @@ func FromWorkflow[Input any, Output any](f func(polycode.WorkflowContext, Input)
47
48
func ExecService(c *gin.Context, tenantId string, partitionKey string, service string, method string,
49
options polycode.TaskOptions, input any, outputTransform func(any) (any, error)) {
50
- apiCtx, err := apicontext.FromContext(c)
+ apiCtx, err := apicontext.FromContext(c.Request.Context())
51
if err != nil {
52
c.JSON(http.StatusInternalServerError, gin.H{
53
"error": "Failed to execute controller: " + err.Error(),
0 commit comments