refactor: streamline cookie handling in session data retrieval and improve logging in stats fetching

This commit is contained in:
Rotimi Best
2026-03-12 09:21:04 +01:00
parent 30c157468e
commit 3a2487a322
2 changed files with 4 additions and 7 deletions
@@ -25,7 +25,7 @@ export const load = async ({ params, parent, cookies }) => {
}
try {
console.log('fetching stats', cookies);
console.log('fetching stats');
const statsResponse = await classroomio.dash.stats.$get({ query: { siteName } }, getApiHeaders(cookies, orgId));
const statsData = await statsResponse.json();
cache[orgId] = statsData.success ? statsData.data : null;