fix(backend): fix display_name in PATCH /members/{id} not applying

This commit is contained in:
Sam 2023-03-19 04:05:11 +01:00
parent 2f66f94390
commit 41edaee8ea
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (s *Server) patchMember(w http.ResponseWriter, r *http.Request) error {
*req.Name = strings.TrimSpace(*req.Name)
}
if req.DisplayName != nil {
*req.DisplayName = strings.TrimSpace(*req.Name)
*req.DisplayName = strings.TrimSpace(*req.DisplayName)
}
if req.Bio != nil {
*req.Bio = strings.TrimSpace(*req.Bio)