Added optional parameter parsing from OpenAPI

This commit is contained in:
frikky
2020-12-08 14:47:36 +01:00
parent 1f012e9665
commit ca45559b54
3 changed files with 61 additions and 3 deletions
+2 -2
View File
@@ -7099,7 +7099,7 @@ func runInit(ctx context.Context) {
// Fixing workflows to have real activeorg IDs
if len(activeOrgs) == 1 {
q := datastore.NewQuery("workflow")
q := datastore.NewQuery("workflow").Limit(35)
var workflows []Workflow
_, err = dbclient.GetAll(ctx, q, &workflows)
if err != nil {
@@ -7383,7 +7383,7 @@ func runInit(ctx context.Context) {
workflowLocation := os.Getenv("SHUFFLE_DOWNLOAD_WORKFLOW_LOCATION")
if len(workflowLocation) > 0 {
log.Printf("Downloading WORKFLOWS from %s if no workflows - EXTRA workflows", workflowLocation)
q := datastore.NewQuery("workflow")
q := datastore.NewQuery("workflow").Limit(35)
var workflows []Workflow
_, err = dbclient.GetAll(ctx, q, &workflows)
if err != nil {