From 5673acdd6091a0f1656ec7223a9c9feda09b709c Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 13 Apr 2018 14:41:31 +0200 Subject: [PATCH] Fixed lint --- models/log_action.go | 1 + routes/api/v1/logs.go | 1 + 2 files changed, 2 insertions(+) diff --git a/models/log_action.go b/models/log_action.go index aa2051f..50610cc 100644 --- a/models/log_action.go +++ b/models/log_action.go @@ -30,6 +30,7 @@ func logAction(actionType ActionType, user *User, itemID int64) (err error) { return } +// GetAllLogs returns an array with all logs func GetAllLogs() (logs []UserLog, err error) { err = x.OrderBy("id DESC").Find(&logs) if err != nil { diff --git a/routes/api/v1/logs.go b/routes/api/v1/logs.go index 3bdf361..6614e06 100644 --- a/routes/api/v1/logs.go +++ b/routes/api/v1/logs.go @@ -6,6 +6,7 @@ import ( "net/http" ) +// ShowLogs handels viewing logs func ShowLogs(c echo.Context) error { // Check if the user is admin