add org structure

This commit is contained in:
andrusyakka
2023-07-05 18:03:24 +03:00
parent f8cb5dea99
commit 3dd20da723
10 changed files with 125 additions and 11 deletions

View File

@@ -102,7 +102,7 @@ func (h *Handler) CreateUser(c echo.Context) (err error) {
user.Password = fmt.Sprintf("%x", sha256.Sum256([]byte(user.Password)))
tx := h.DB.Omit("ID", "CreatedAt", "UpdatedAt", "DeletedAt").Create(user)
tx := h.DB.Create(user)
if tx.RowsAffected == 0 {
return c.NoContent(http.StatusBadGateway)