remove duplicate method call in rest.js
This commit is contained in:
parent
dd4239f1f3
commit
963cc238e8
|
|
@ -201,17 +201,6 @@ export const getLobbyChatMessages = (options = {}) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const updateUser = (userId, options) => {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
apiFetch(`/users/${userId}`, {
|
|
||||||
method: 'PATCH',
|
|
||||||
body: JSON.stringify(options)
|
|
||||||
})
|
|
||||||
.then(response => resolve(response))
|
|
||||||
.catch(error => reject(error));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getCountries = () => {
|
export const getCountries = () => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
apiFetch(`/countries`)
|
apiFetch(`/countries`)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue