From d33ffe8a838734ab0ace758c27f26f5c60af90a9 Mon Sep 17 00:00:00 2001 From: frikky Date: Sat, 3 Apr 2021 21:52:34 +0200 Subject: [PATCH] #331: Made admins able to delete apps without a owner --- backend/go-app/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 0b2b47cd..5a055d15 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -5424,10 +5424,10 @@ func runInit(ctx context.Context) { } // Getting apps to see if we should initialize a test - log.Printf("Getting remote workflow apps") + log.Printf("[INFO] Getting and validating workflowapps") workflowapps, err := shuffle.GetAllWorkflowApps(ctx, 500) - if err != nil { - log.Printf("Failed getting apps (runInit): %s", err) + if err != nil && len(workflowapps) == 0 { + log.Printf("[WARNING] Failed getting apps (runInit): %s", err) } else if err == nil && len(workflowapps) > 0 { var allworkflowapps []shuffle.WorkflowApp q := datastore.NewQuery("workflowapp")