Skip to content

Commit 8b8556b

Browse files
committed
user service. get updated
1 parent 6407530 commit 8b8556b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/users.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function update({ id, firstName, lastName, email }: { id: string, firstName: str
4949
body: JSON.stringify({ firstName, lastName, email }),
5050
};
5151

52-
return fetch(`${API_URL}${ENDPOINT_URL}/${id}`, requestOptions)
52+
return fetch(`${API_URL}${ENDPOINT_URL}`, requestOptions)
5353
.then(handleResponse)
5454
.then((user) => {
5555
setUserInLocalStorage(user)

0 commit comments

Comments
 (0)