Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Martin Kraft
2020-05-11 11:45:54 -04:00
коммит произвёл GitHub
родитель 744ec281d2
Коммит 3f6c9ab40c

Просмотреть файл

@@ -222,9 +222,9 @@ func linkGroupSyncable(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
// Not awaiting completion because the group sync job executes the same procedure—but for all syncables—and
// persists the execution status to the jobs table.
go c.App.SyncRolesAndMembership(syncableID, syncableType)
c.App.Srv().Go(func() {
c.App.SyncRolesAndMembership(syncableID, syncableType)
})
w.WriteHeader(http.StatusCreated)
@@ -383,9 +383,9 @@ func patchGroupSyncable(c *Context, w http.ResponseWriter, r *http.Request) {
auditRec.AddMeta("new_syncable_id", groupSyncable.SyncableId)
auditRec.AddMeta("new_syncable_type", groupSyncable.Type)
// Not awaiting completion because the group sync job executes the same procedure—but for all syncables—and
// persists the execution status to the jobs table.
go c.App.SyncRolesAndMembership(syncableID, syncableType)
c.App.Srv().Go(func() {
c.App.SyncRolesAndMembership(syncableID, syncableType)
})
b, marshalErr := json.Marshal(groupSyncable)
if marshalErr != nil {
@@ -437,9 +437,9 @@ func unlinkGroupSyncable(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
// Not awaiting completion because the group sync job executes the same procedure—but for all syncables—and
// persists the execution status to the jobs table.
go c.App.SyncRolesAndMembership(syncableID, syncableType)
c.App.Srv().Go(func() {
c.App.SyncRolesAndMembership(syncableID, syncableType)
})
auditRec.Success()