fix: change POST user update profile and delete input.role

This commit is contained in:
Deforest6342 committed 2026-06-24 10:46:15 +03:00
1 parent e569d63539
commit 4fc2c28d3b
3 files changed
+1 -2

No files matched your search

-1
View File
@@ -154,7 +154,6 @@ func UpdateProfile(c *gin.Context) {
FirstName: input.FirstName,
LastName: input.LastName,
Phone: input.Phone,
Role: input.Role,
}).Error; err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": "Не удалось обновить данные", "details": err.Error()})
return