Migrate SchemeStore to sync by default (#11522)

* Migrate SchemeStore to sync by default

* Fixing tests compilation

* Fixing shadow variable

* Fixing tests
Этот коммит содержится в:
Jesús Espino
2019-07-06 09:07:54 +02:00
коммит произвёл GitHub
родитель 7da08e7a0f
Коммит 96c33948da
16 изменённых файлов: 464 добавлений и 417 удалений

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

@@ -43,8 +43,8 @@ func (a *App) ResetPermissionsSystem() *model.AppError {
}
// Purge all schemes from the database.
if result := <-a.Srv.Store.Scheme().PermanentDeleteAll(); result.Err != nil {
return result.Err
if err := a.Srv.Store.Scheme().PermanentDeleteAll(); err != nil {
return err
}
// Purge all roles from the database.