From d38633e04772aee2970cfc4aa38b0ef706ba9dc0 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 9 Nov 2020 15:47:32 +0300 Subject: [PATCH] [#161] object/delete: Add address from request body to tombstone content Signed-off-by: Leonard Lyubich --- pkg/services/object/delete/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/object/delete/service.go b/pkg/services/object/delete/service.go index bc51aab154..94a9d928e5 100644 --- a/pkg/services/object/delete/service.go +++ b/pkg/services/object/delete/service.go @@ -138,7 +138,7 @@ func (s *Service) getRelations(ctx context.Context, prm *Prm) ([]*objectSDK.Addr } } else { childList := linking.GetChildren() - res = make([]*objectSDK.Address, 0, len(childList)+1) + res = make([]*objectSDK.Address, 0, len(childList)+2) // 1 for parent, 1 for linking for i := range childList { addr := objectSDK.NewAddress() @@ -155,6 +155,8 @@ func (s *Service) getRelations(ctx context.Context, prm *Prm) ([]*objectSDK.Addr res = append(res, addr) } + res = append(res, prm.addr) + return res, nil }