From e2f54df24d0b505cc7a77828a930d68d4b3a40f7 Mon Sep 17 00:00:00 2001 From: Ilja Neumann Date: Thu, 8 Oct 2020 18:25:00 +0200 Subject: [PATCH] Pass account instead of id to index delete --- accounts/pkg/service/v0/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/pkg/service/v0/accounts.go b/accounts/pkg/service/v0/accounts.go index 766425e27..dfdb7f28d 100644 --- a/accounts/pkg/service/v0/accounts.go +++ b/accounts/pkg/service/v0/accounts.go @@ -520,7 +520,7 @@ func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountReque return merrors.InternalServerError(s.id, "could not remove account: %v", err.Error()) } - if err = s.index.Delete(id); err != nil { + if err = s.index.Delete(a); err != nil { s.log.Error().Err(err).Str("id", id).Str("accountId", id).Msg("could not remove account from index") return merrors.InternalServerError(s.id, "could not remove account from index: %v", err.Error()) }