fix mistake

This commit is contained in:
kandrusyak
2023-07-25 02:16:37 +03:00
parent 395f739d59
commit 4d01d35eae

View File

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