Add updated_at column to users table and remove debug logging from profile update handler
This commit is contained in:
@@ -3857,7 +3857,6 @@ func getUserProfileHandler(w http.ResponseWriter, r *http.Request, db *database.
|
||||
|
||||
// updateUserProfileHandler updates the current user's profile information
|
||||
func updateUserProfileHandler(w http.ResponseWriter, r *http.Request, db *database.DB, auditLogger *audit.Logger) {
|
||||
log.Printf("DEBUG: updateUserProfileHandler called")
|
||||
userIDStr, ok := middleware.GetUserID(r.Context())
|
||||
if !ok {
|
||||
errors.WriteError(w, errors.CodeUnauthenticated, "Unauthorized", http.StatusUnauthorized)
|
||||
@@ -3881,8 +3880,6 @@ func updateUserProfileHandler(w http.ResponseWriter, r *http.Request, db *databa
|
||||
return
|
||||
}
|
||||
|
||||
log.Printf("DEBUG: updateUserProfileHandler req: displayName=%v, email=%v, avatarUrl=%v", req.DisplayName, req.Email, req.AvatarURL)
|
||||
|
||||
// Build dynamic update query
|
||||
var setParts []string
|
||||
var args []interface{}
|
||||
|
||||
Reference in New Issue
Block a user