We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9d040 commit d627080Copy full SHA for d627080
internal/handlers/user/user_handlers.go
@@ -413,15 +413,15 @@ func (h *Handlers) UploadStudentID(c *gin.Context) {
413
}
414
415
// Update user profile picture
416
- if err := h.UserService.UploadProfilePicture(userID, user.ProfilePicture); err != nil {
+ if err := h.UserService.UploadStudentID(userID, *user.StudentIDVerification); err != nil {
417
c.JSON(http.StatusInternalServerError, gin.H{"success": false, "message": []string{err.Error()}})
418
return
419
420
421
c.JSON(http.StatusOK, gin.H{
422
"success": true,
423
"message": "Profile Picture Uploaded Successfully",
424
- "data": user.ProfilePicture,
+ "data": user.StudentIDVerification,
425
})
426
427
0 commit comments