Migrate Preference.DeleteCategory to Sync by default (#10927)

Этот коммит содержится в:
Woolim Cho
2019-05-28 20:02:39 +09:00
коммит произвёл Lev
родитель fb237cc624
Коммит d9969613f7
5 изменённых файлов: 22 добавлений и 20 удалений

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

@@ -53,15 +53,15 @@ func (_m *PreferenceStore) Delete(userId string, category string, name string) s
}
// DeleteCategory provides a mock function with given fields: userId, category
func (_m *PreferenceStore) DeleteCategory(userId string, category string) store.StoreChannel {
func (_m *PreferenceStore) DeleteCategory(userId string, category string) *model.AppError {
ret := _m.Called(userId, category)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok {
var r0 *model.AppError
if rf, ok := ret.Get(0).(func(string, string) *model.AppError); ok {
r0 = rf(userId, category)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(*model.AppError)
}
}