fix another type: succes -> success

This commit is contained in:
Steffen Vogel 2021-01-25 11:23:01 +01:00
parent 2625e16fbe
commit 8255382dd6

View file

@ -23,9 +23,10 @@ package helper
import (
"fmt"
"net/http"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"net/http"
)
func DBError(c *gin.Context, err error) bool {
@ -70,7 +71,7 @@ func UnauthorizedError(c *gin.Context, err string) {
func UnauthorizedAbort(c *gin.Context, err string) {
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{
"succes": false,
"success": false,
"message": fmt.Sprintf("%v", err),
})
}