remove duplicate method call in rest.js

This commit is contained in:
Nuwan 2024-02-05 19:03:42 +05:30
parent dd4239f1f3
commit 963cc238e8
1 changed files with 0 additions and 11 deletions

View File

@ -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 = () => {
return new Promise((resolve, reject) => {
apiFetch(`/countries`)