Added contributor tracking apps, and started tracking revisions the same way as workflows

This commit is contained in:
Frikky
2024-02-28 20:06:45 +01:00
parent 3489d26c73
commit 54f6b07cb6
2 changed files with 29 additions and 12 deletions
+6
View File
@@ -3183,6 +3183,12 @@ func setNewWorkflowApp(resp http.ResponseWriter, request *http.Request) {
workflowapp.Generated = false
workflowapp.Activated = true
if !shuffle.ArrayContains(api.Contributors, user.Id) {
api.Contributors = append(api.Contributors, user.Id)
}
shuffle.SetAppRevision(ctx, workflowapp)
err = shuffle.SetWorkflowAppDatastore(ctx, workflowapp, workflowapp.ID)
if err != nil {
log.Printf("[WARNING] Failed setting workflowapp: %s", err)