refactor: clean code

This commit is contained in:
2025-02-02 20:32:45 +03:00
parent 9f742cab78
commit a3a19be5a4
2 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,7 @@ export default abstract class ApiService {
return this.http.request<Type>(method, doneEndpoint, {
withCredentials: request.withCredentials,
headers: request.httpHeaders,
body: request.data,
body: request.data
}).pipe(
catchError(error => {
if (request.needAuth && !secondTry && error.status === 401)