chore: use session to update lastSeen and UI tweaks

This commit is contained in:
Rotimi Best
2024-12-30 12:25:43 +01:00
parent f69bf920a9
commit ae55349f27
5 changed files with 7 additions and 19 deletions
@@ -10,7 +10,7 @@ import { json } from '@sveltejs/kit';
const supabase = getServerSupabase();
const CACHE_DURATION = 60; // 1 minute
const CACHE_DURATION = 60 * 5; // 5 minutes
export async function POST({ setHeaders, request }) {
const { userId, courseId, orgId } = await request.json();