refactor toggleActivationStatus
This commit is contained in:
parent
506822bed0
commit
45e7f93c49
1 changed files with 1 additions and 7 deletions
|
@ -452,13 +452,7 @@ const deleteRight = ({ right, credentials, ...user }) => {
|
||||||
|
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
const toggleActivationStatus = ({ credentials, screen_name }) => {
|
const toggleActivationStatus = ({ credentials, screen_name }) => {
|
||||||
const headers = authHeaders(credentials)
|
return promisedRequest({ url: TOGGLE_ACTIVATION_URL(screen_name), method: 'PATCH', credentials })
|
||||||
headers['Content-Type'] = 'application/json'
|
|
||||||
|
|
||||||
return fetch(TOGGLE_ACTIVATION_URL(screen_name), {
|
|
||||||
method: 'PATCH',
|
|
||||||
headers: headers
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteUser = ({ credentials, ...user }) => {
|
const deleteUser = ({ credentials, ...user }) => {
|
||||||
|
|
Loading…
Reference in a new issue