fix mistake

This commit is contained in:
kandrusyak
2023-07-25 02:08:03 +03:00
parent c8bc546bc2
commit 395f739d59

View File

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