Adds includeDeleted flag to get remote cluster app and store methods (#28182)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
46ca7747f8
Коммит
cae456de2d
@@ -395,13 +395,10 @@ func (scs *Service) processTask(task syncTask) error {
|
||||
remotesMap[r.RemoteId] = r
|
||||
}
|
||||
} else {
|
||||
rc, err := scs.server.GetStore().RemoteCluster().Get(task.remoteID)
|
||||
rc, err := scs.server.GetStore().RemoteCluster().Get(task.remoteID, false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if rc.DeleteAt != 0 {
|
||||
return fmt.Errorf("Processing task for a deleted remote cluster '%s'", task.remoteID)
|
||||
}
|
||||
if !rc.IsOnline() {
|
||||
return fmt.Errorf("Failed updating shared channel '%s' for offline remote cluster '%s'", task.channelID, rc.DisplayName)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user