Skip to content

Commit

Permalink
fix: rollback information api revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
youngminss committed Feb 21, 2025
1 parent 75d7977 commit e211610
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/information/api/fetchBlockchainInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ export const fetchBlockchainInformation = async ({
blockchainInformationType,
page,
size,
requestInit,
}: {
blockchainInformationType: TBlockchainInformationType;
page?: number;
size?: number;
requestInit?: RequestInit;
}): Promise<TBlockchainInformationResponse> => {
try {
const res = await fetch(
`${BASE_URL}/api/info/${blockchainInformationType}?page=${page}&size=${size}`,
requestInit ?? { next: { revalidate: 3600 } }
);
const res = await fetch(`${BASE_URL}/api/info/${blockchainInformationType}?page=${page}&size=${size}`);
const data = (await res.json()) as TBlockchainInformationApiResponse;

return convertFromBlockchainInformationApiResponse({ apiResponse: data, blockchainInformationType });
Expand Down

0 comments on commit e211610

Please sign in to comment.