Add safe access in case no delete change provided

This commit is contained in:
mcrakhman authored and Mikhail Iudin committed 2023-03-06 09:31:27 +01:00
1 parent 93822ae556
commit 1210b9d21a
1 file changed
+2 -2
@@ -36,8 +36,8 @@ func (c *coordinatorClient) ChangeStatus(ctx context.Context, spaceId string, de
}
resp, err := cl.SpaceStatusChange(ctx, &coordinatorproto.SpaceStatusChangeRequest{
SpaceId: spaceId,
DeletionChangeId: deleteRaw.Id,
DeletionChangePayload: deleteRaw.RawChange,
DeletionChangeId: deleteRaw.GetId(),
DeletionChangePayload: deleteRaw.GetRawChange(),
})
if err != nil {
return