Added organization deletion

This commit is contained in:
Frikky
2023-09-21 18:00:02 +02:00
parent c90059dd56
commit f99d458b9c
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -992,6 +992,7 @@ func deleteWorkflow(resp http.ResponseWriter, request *http.Request) {
cacheKey := fmt.Sprintf("%s_workflows", user.Id)
shuffle.DeleteCache(ctx, cacheKey)
shuffle.DeleteCache(ctx, fmt.Sprintf("%s_workflows", user.ActiveOrg.Id))
log.Printf("[DEBUG] Cleared workflow cache for %s (%s)", user.Username, user.Id)
resp.WriteHeader(200)