StatusStore migration (#14978)
* Finished! * Typos * Fix error * Fix layers * Lint: remove unnecessary use of sprint * Fix shadowing err
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
909cda6d49
Коммит
32b7d2b5f1
@@ -5628,7 +5628,7 @@ func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (strin
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppError) {
|
||||
func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.StatusStore.Get(userId)
|
||||
@@ -5644,7 +5644,7 @@ func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppErr
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError) {
|
||||
func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.StatusStore.GetByIds(userIds)
|
||||
@@ -5660,7 +5660,7 @@ func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *mo
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError) {
|
||||
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.StatusStore.GetTotalActiveUsersCount()
|
||||
@@ -5676,7 +5676,7 @@ func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppErr
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) ResetAll() *model.AppError {
|
||||
func (s *TimerLayerStatusStore) ResetAll() error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.StatusStore.ResetAll()
|
||||
@@ -5692,7 +5692,7 @@ func (s *TimerLayerStatusStore) ResetAll() *model.AppError {
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError {
|
||||
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.StatusStore.SaveOrUpdate(status)
|
||||
@@ -5708,7 +5708,7 @@ func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppErr
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError {
|
||||
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.StatusStore.UpdateLastActivityAt(userId, lastActivityAt)
|
||||
|
||||
Ссылка в новой задаче
Block a user