Skip to content

Commit

Permalink
Fix ts err
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasledoux1 committed Jun 12, 2024
1 parent fbecd35 commit e0c5791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/page-views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const GET: APIRoute = async ({ request }) => {
]);
totalViews = totalViewsRes[0]?.totalCount ?? 0;
totalUniqueURLs = totalViewsRes[0]?.totalUniqueURLs ?? 0;
totalPages = Math.ceil(totalUniqueURLs / pageSize);
totalPages = Math.ceil((totalUniqueURLs ?? 0) / pageSize);
}

const end = performance.now();
Expand Down

0 comments on commit e0c5791

Please sign in to comment.