Skip to content

Commit 9ab5b7a

Browse files
Move from PUT to PATCH
Signed-off-by: Peter Broadhurst <[email protected]>
1 parent 9a36edb commit 9ab5b7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/manager/api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func TestSendTransactionUpdateFireFlyFail(t *testing.T) {
297297
return res, status
298298
}),
299299
func(w http.ResponseWriter, r *http.Request) {
300-
if r.Method == http.MethodPut {
300+
if r.Method == http.MethodPatch {
301301
errRes := fftypes.RESTError{Error: "pop"}
302302
b, err := json.Marshal(&errRes)
303303
assert.NoError(t, err)

internal/manager/ffcore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (m *manager) writeManagedTX(ctx context.Context, mtx *fftm.ManagedTXOutput,
5050
Error: errString,
5151
}).
5252
SetContext(ctx).
53-
Put(fmt.Sprintf("/spi/v1/operations/%s", mtx.ID))
53+
Patch(fmt.Sprintf("/spi/v1/operations/%s", mtx.ID))
5454
if err != nil {
5555
return err
5656
}

0 commit comments

Comments
 (0)