Add safe access in case no delete change provided
This commit is contained in:
parent
3895dc8e14
commit
58f01da459
@ -36,8 +36,8 @@ func (c *coordinatorClient) ChangeStatus(ctx context.Context, spaceId string, de
|
|||||||
}
|
}
|
||||||
resp, err := cl.SpaceStatusChange(ctx, &coordinatorproto.SpaceStatusChangeRequest{
|
resp, err := cl.SpaceStatusChange(ctx, &coordinatorproto.SpaceStatusChangeRequest{
|
||||||
SpaceId: spaceId,
|
SpaceId: spaceId,
|
||||||
DeletionChangeId: deleteRaw.Id,
|
DeletionChangeId: deleteRaw.GetId(),
|
||||||
DeletionChangePayload: deleteRaw.RawChange,
|
DeletionChangePayload: deleteRaw.GetRawChange(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user