fix: fix error in merge

This commit is contained in:
Sam 2023-05-29 04:04:24 +02:00
parent e993d2a89e
commit 52f9cfe881
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

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
}