tariff getList
All checks were successful
Deploy / CreateImage (push) Successful in 3m36s
Deploy / DeployService (push) Successful in 20s

This commit is contained in:
Nastya 2025-03-19 06:41:44 +03:00
parent 3a84c260d0
commit b6646ed54f
2 changed files with 2 additions and 1 deletions

@ -26,7 +26,7 @@ export const getTariffs = async (
try {
const tariffsResponse = await makeRequest<never, GetTariffsResponse>({
method: "GET",
url: `${API_URL}/tariff?page=${apiPage}&limit=${tariffsPerPage}`,
url: `${API_URL}/tariff/getList?page=${apiPage}&limit=${tariffsPerPage}`,
useToken: true,
signal,
});

@ -63,6 +63,7 @@ export default function ProtectedLayout() {
});
useAllTariffsFetcher({
baseUrl: process.env.REACT_APP_DOMAIN + "/strator/tariff/getList",
onSuccess: updateTariffs,
onError: (error) => {
const errorMessage = getMessageFromFetchError(error);