cut send system true
All checks were successful
Deploy / CreateImage (push) Successful in 5m28s
Deploy / DeployService (push) Successful in 22s

This commit is contained in:
Nastya 2025-04-03 22:22:15 +03:00
parent 459553056d
commit cf1fce88cb
2 changed files with 10 additions and 10 deletions

@ -33,11 +33,11 @@ export const makeRequest = async <TRequest = unknown, TResponse = unknown>(
} catch (nativeError) { } catch (nativeError) {
const error = nativeError as AxiosError; const error = nativeError as AxiosError;
if (window.location.hostname !== 'localhost') selectSendingMethod({ // if (window.location.hostname !== 'localhost') selectSendingMethod({
messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`, // messageField: `status: ${error.response?.status}. Message ${(error.response?.data as ExtendedAxiosResponse)?.message}`,
isSnackbar: false, // isSnackbar: false,
systemError: true // systemError: true
}); // });
if ( if (
error.response?.status === 400 && error.response?.status === 400 &&
(error.response?.data as ExtendedAxiosResponse)?.message === (error.response?.data as ExtendedAxiosResponse)?.message ===

@ -38,10 +38,10 @@ async function sendErrorsToServer() {
// body: errorsQueue, // body: errorsQueue,
// useToken: true, // useToken: true,
// }); // });
selectSendingMethod({ // selectSendingMethod({
messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`, // messageField: `Fake-sending ${errorsQueue.length} errors to server ${JSON.stringify(errorsQueue)}`,
isSnackbar: false, // isSnackbar: false,
systemError: true // systemError: true
}); // });
// errorsQueue = []; // errorsQueue = [];
} }