fix SetTransferStatus

This commit is contained in:
Jakob Schrettenbrunner 2021-01-10 02:34:18 +00:00
parent c9c949a091
commit 4cefe74a47

View File

@ -158,7 +158,7 @@ func (c *client) SetTransferStatus(ctx context.Context, uuid string, successful
if successful { if successful {
state = "success" state = "success"
} }
resp, err := c.post(ctx, fmt.Sprintf("/servers/%s/transfer/%s", uuid), state) resp, err := c.get(ctx, fmt.Sprintf("/servers/%s/transfer/%s", uuid, state), nil)
if err != nil { if err != nil {
return err return err
} }