fix: fix error in merge

This commit is contained in:
Sam 2023-05-29 04:04:24 +02:00
parent e993d2a89e
commit 52f9cfe881
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 6 additions and 1 deletions

View File

@ -174,7 +174,12 @@ func (s *Server) getMeMember(w http.ResponseWriter, r *http.Request) error {
return err
}
render.JSON(w, r, dbMemberToMember(u, m, fields, true))
flags, err := s.DB.MemberFlags(ctx, m.ID)
if err != nil {
return err
}
render.JSON(w, r, dbMemberToMember(u, m, fields, flags, true))
return nil
}