Fixed lint
This commit is contained in:
parent
0b4891c3ef
commit
5673acdd60
|
@ -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 {
|
||||
|
|
|
@ -6,6 +6,7 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
// ShowLogs handels viewing logs
|
||||
func ShowLogs(c echo.Context) error {
|
||||
|
||||
// Check if the user is admin
|
||||
|
|
Loading…
Reference in New Issue