mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-29 23:45:16 -04:00
Pass account instead of id to index delete
This commit is contained in:
1 parent
f11ae963b1
commit
e2f54df24d
1 file changed
+1
-1
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user