diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-06 17:12:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 17:12:54 -0500 |
commit | 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 (patch) | |
tree | 2766bacc1f045fa685ca3d8310cd6174d0311d09 /app/audit.go | |
parent | b84bd21089d305333fa4114b95be70f5ad94ad1b (diff) | |
download | chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.gz chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.bz2 chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.zip |
app type transition (#7167)
Diffstat (limited to 'app/audit.go')
-rw-r--r-- | app/audit.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/audit.go b/app/audit.go index fdd152719..044aac9cb 100644 --- a/app/audit.go +++ b/app/audit.go @@ -7,16 +7,16 @@ import ( "github.com/mattermost/platform/model" ) -func GetAudits(userId string, limit int) (model.Audits, *model.AppError) { - if result := <-Srv.Store.Audit().Get(userId, 0, limit); result.Err != nil { +func (a *App) GetAudits(userId string, limit int) (model.Audits, *model.AppError) { + if result := <-a.Srv.Store.Audit().Get(userId, 0, limit); result.Err != nil { return nil, result.Err } else { return result.Data.(model.Audits), nil } } -func GetAuditsPage(userId string, page int, perPage int) (model.Audits, *model.AppError) { - if result := <-Srv.Store.Audit().Get(userId, page*perPage, perPage); result.Err != nil { +func (a *App) GetAuditsPage(userId string, page int, perPage int) (model.Audits, *model.AppError) { + if result := <-a.Srv.Store.Audit().Get(userId, page*perPage, perPage); result.Err != nil { return nil, result.Err } else { return result.Data.(model.Audits), nil |