From aada7ac65df7df17478c2c69f9f2551c590b6d98 Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Thu, 8 Oct 2020 20:52:58 +0200 Subject: [PATCH] Delete group by entity instead by id --- accounts/pkg/service/v0/groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/pkg/service/v0/groups.go b/accounts/pkg/service/v0/groups.go index b82f826e5e..d7865594b9 100644 --- a/accounts/pkg/service/v0/groups.go +++ b/accounts/pkg/service/v0/groups.go @@ -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()) }