From 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2017 17:12:54 -0500 Subject: app type transition (#7167) --- app/audit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/audit.go') 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 -- cgit v1.2.3-1-g7c22