GH-11298 Migrate UserAccessToken.UpdateTokenEnable to Sync by default (#11418)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
a86b204105
Коммит
591c73310c
@@ -6,7 +6,6 @@ package mocks
|
||||
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
import model "github.com/mattermost/mattermost-server/model"
|
||||
import store "github.com/mattermost/mattermost-server/store"
|
||||
|
||||
// UserAccessTokenStore is an autogenerated mock type for the UserAccessTokenStore type
|
||||
type UserAccessTokenStore struct {
|
||||
@@ -212,15 +211,15 @@ func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppErr
|
||||
}
|
||||
|
||||
// UpdateTokenEnable provides a mock function with given fields: tokenId
|
||||
func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenId string) store.StoreChannel {
|
||||
func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError {
|
||||
ret := _m.Called(tokenId)
|
||||
|
||||
var r0 store.StoreChannel
|
||||
if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok {
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string) *model.AppError); ok {
|
||||
r0 = rf(tokenId)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(store.StoreChannel)
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user