Skip to content

Commit d627080

Browse files
committed
fix: service change on upload student id
1 parent 6a9d040 commit d627080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/handlers/user/user_handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,15 @@ func (h *Handlers) UploadStudentID(c *gin.Context) {
413413
}
414414

415415
// Update user profile picture
416-
if err := h.UserService.UploadProfilePicture(userID, user.ProfilePicture); err != nil {
416+
if err := h.UserService.UploadStudentID(userID, *user.StudentIDVerification); err != nil {
417417
c.JSON(http.StatusInternalServerError, gin.H{"success": false, "message": []string{err.Error()}})
418418
return
419419
}
420420

421421
c.JSON(http.StatusOK, gin.H{
422422
"success": true,
423423
"message": "Profile Picture Uploaded Successfully",
424-
"data": user.ProfilePicture,
424+
"data": user.StudentIDVerification,
425425
})
426426
}
427427

0 commit comments

Comments
 (0)