tech: comment logging

This commit is contained in:
Michal Szczepanski 2023-09-19 19:31:39 +02:00
parent 19edab9436
commit a276cf346a
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export class FetchService {
resolveFetch: (value: FetchResponse<T>) => void,
rejectFetch: (error: Error) => void
): void => {
fnConsoleLog('FetchService->_fetch', url);
// fnConsoleLog('FetchService->_fetch', url);
const headers = params.headers ? params.headers : this.applyDefaultHeaders(params.headers);
// timeout
const timeout = setTimeout(() => {
@ -46,7 +46,7 @@ export class FetchService {
this.getResponse(res, params.type!)
.then((data) => {
clearTimeout(timeout);
fnConsoleLog('FetchService->_fetch->resolve', res.ok, 'status', res.status);
// fnConsoleLog('FetchService->_fetch->resolve', res.ok, 'status', res.status);
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
resolveFetch({ url, type: params.type!, status: res.status, data, ok: res.ok });
})