Verified Commit bd5a28f0 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg Committed by Sébastiaan Versteeg
Browse files

Change registration update call to PATCH instead of PUT for future new fields...

Change registration update call to PATCH instead of PUT for future new fields that the app doesn't change
parent f0c00201
......@@ -137,7 +137,7 @@ describe('registration saga', () => {
.put(registrationActions.failure())
.silentRun());
it('should do a PUT request with fields', () => expectSaga(registrationSaga)
it('should do a PATCH request with fields', () => expectSaga(registrationSaga)
.provide([
[select(tokenSelector), 'token'],
])
......@@ -151,7 +151,7 @@ describe('registration saga', () => {
Authorization: 'Token token',
'Content-Type': 'application/json',
},
method: 'PUT',
method: 'PATCH',
});
}));
});
......
......@@ -57,7 +57,7 @@ const update = function* update(action) {
});
const data = {
method: 'PUT',
method: 'PATCH',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment