Skip to content

Commit

Permalink
fix: error types
Browse files Browse the repository at this point in the history
  • Loading branch information
adit-bala committed Nov 26, 2024
1 parent ad36e05 commit c4b729a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/datapuller/src/cleanupLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function cleanupLogs() {
}

logger.info("Log cleanup completed successfully.");
} catch (error: any ) {
} catch (error: any) {
logger.error(`Log cleanup failed: ${error.message}`);
process.exit(1);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/datapuller/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function fetchActiveTerms(
);
const data = await response.json();
activeTermIds.push(...data.response.terms.map((term: Term) => term.id));
} catch (error) {
} catch (error: any) {
logger.error(`Unexpected error querying API. Error: "${error}"`);
}
}
Expand Down Expand Up @@ -106,7 +106,7 @@ export async function fetchPaginatedData<T, R>(
try {
const processedItem = itemProcessor(item);
acc.push(processedItem);
} catch (error) {
} catch (error: any) {
batchErrorCount++;
totalErrorCount++;
logger.error(`Error processing item at index ${index}:`, error);
Expand Down

0 comments on commit c4b729a

Please sign in to comment.