Skip to content

Commit 885f7fc

Browse files
committed
Now also added backend for auto-caching of name -> ID
1 parent 65ac2ad commit 885f7fc

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

shared.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14561,6 +14561,14 @@ func GetWorkflowAppConfig(resp http.ResponseWriter, request *http.Request) {
1456114561
return
1456214562
}
1456314563
}
14564+
14565+
// Used to cache pre-algolia lookup
14566+
unescaped, err := url.QueryUnescape(app.Name)
14567+
if err == nil {
14568+
encodedAppName := fmt.Sprintf("workflowapp_cache_%s", unescaped)
14569+
SetCache(context.Background(), encodedAppName, []byte(fileId), 86400)
14570+
}
14571+
//appIdCache, err := shuffle.GetCache(ctx, encodedAppName)
1456414572
}
1456514573

1456614574
//log.Printf("[INFO] Successfully got app %s", fileId)

structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4118,7 +4118,7 @@ type CategoryAction struct {
41184118
OrgId string `json:"org_id"`
41194119
WorkflowId string `json:"workflow_id"` // Forces it to use a specific workflow ID. This can be used to build multiple steps in the same workflow
41204120
ExecutionId string `json:"execution_id"` // Execution auth
4121-
AuthorizationId string `json:"authorization_id"`// Execution auth
4121+
Authorization string `json:"authorization"`// Execution auth
41224122
}
41234123

41244124
type LabelStruct struct {

0 commit comments

Comments
 (0)