Add safe access in case no delete change provided

This commit is contained in:
mcrakhman 2023-03-06 09:31:27 +01:00
parent 3895dc8e14
commit 58f01da459
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

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