MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
@@ -8,9 +8,9 @@ import (
|
||||
)
|
||||
|
||||
func (a *App) GetAudits(userId string, limit int) (model.Audits, *model.AppError) {
|
||||
return a.Srv.Store.Audit().Get(userId, 0, limit)
|
||||
return a.Srv().Store.Audit().Get(userId, 0, limit)
|
||||
}
|
||||
|
||||
func (a *App) GetAuditsPage(userId string, page int, perPage int) (model.Audits, *model.AppError) {
|
||||
return a.Srv.Store.Audit().Get(userId, page*perPage, perPage)
|
||||
return a.Srv().Store.Audit().Get(userId, page*perPage, perPage)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user