Add safe access in case no delete change provided

This commit is contained in:
mcrakhman 2023-03-06 09:31:27 +01:00 committed by Mikhail Iudin
parent 93822ae556
commit 1210b9d21a
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -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