fix: updating profile picture of other user updates own profile picture

This commit is contained in:
Elias Schneider
2025-02-24 09:35:44 +01:00
parent 20eba1378e
commit 887c5e462a

View File

@@ -172,7 +172,7 @@ func (uc *UserController) getCurrentUserProfilePictureHandler(c *gin.Context) {
}
func (uc *UserController) updateUserProfilePictureHandler(c *gin.Context) {
userID := c.GetString("userID")
userID := c.Param("id")
fileHeader, err := c.FormFile("file")
if err != nil {
c.Error(err)