Fixed namespace updates not working
This commit is contained in:
@ -5,7 +5,6 @@ import (
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func AddNamespace(c echo.Context) error {
|
||||
@ -126,8 +125,6 @@ func addOrUpdateNamespace(c echo.Context) error {
|
||||
return c.JSON(http.StatusForbidden, models.Message{"You need to be namespace admin to edit a namespace."})
|
||||
}
|
||||
|
||||
fmt.Println(namespace)
|
||||
|
||||
err = models.CreateOrUpdateNamespace(namespace)
|
||||
if err != nil {
|
||||
return c.JSON(http.StatusInternalServerError, models.Message{"An error occured."})
|
||||
|
Reference in New Issue
Block a user