mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-12 18:43:45 +00:00
refactor(*): Remove unused userId parameter from countCombinedData method
This commit is contained in:
@@ -208,7 +208,6 @@ class CombinedDataRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async countCombinedData(
|
async countCombinedData(
|
||||||
userId: string,
|
|
||||||
enableForms: boolean,
|
enableForms: boolean,
|
||||||
region: string,
|
region: string,
|
||||||
game: string
|
game: string
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const GET = async (event: RequestEvent) => {
|
|||||||
return json({ combinedData: [], totalPages: 0 });
|
return json({ combinedData: [], totalPages: 0 });
|
||||||
}
|
}
|
||||||
|
|
||||||
const totalCount = await repo.countCombinedData(userId || '', enableForms, region, game);
|
const totalCount = await repo.countCombinedData(enableForms, region, game);
|
||||||
const totalPages = Math.ceil(totalCount / limit);
|
const totalPages = Math.ceil(totalCount / limit);
|
||||||
|
|
||||||
return json({ combinedData, totalPages });
|
return json({ combinedData, totalPages });
|
||||||
|
|||||||
Reference in New Issue
Block a user