fix response format

This commit is contained in:
andrusyakka
2023-08-16 13:59:17 +03:00
parent fe1e913348
commit 8bfbee4fe2
4 changed files with 10 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ func (h *Handler) GetCurrentUser(c echo.Context) error {
u := new(model.User)
tx := h.DB.Where("id = ?", userId).First(&u)
tx := h.DB.Preload("Position").Where("id = ?", userId).First(&u)
if tx.RowsAffected == 0 {
return c.NoContent(http.StatusNotFound)