Delete group by entity instead by id

This commit is contained in:
Ilja Neumann
2020-10-14 18:03:52 +02:00
parent 56b88057e8
commit aada7ac65d
+1 -1
View File
@@ -204,7 +204,7 @@ func (s Service) DeleteGroup(c context.Context, in *proto.DeleteGroupRequest, ou
return merrors.InternalServerError(s.id, "could not load group: %v", err.Error())
}
if err = s.index.Delete(id); err != nil {
if err = s.index.Delete(g); err != nil {
s.log.Error().Err(err).Str("id", id).Str("path", path).Msg("could not remove group from index")
return merrors.InternalServerError(s.id, "could not remove group from index: %v", err.Error())
}