#331: Made admins able to delete apps without a owner

This commit is contained in:
frikky
2021-04-03 21:52:34 +02:00
parent e9a94fa145
commit d33ffe8a83
+3 -3
View File
@@ -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")