Commit 8255382d authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix another type: succes -> success

parent 2625e16f
......@@ -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),
})
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment