From 242f009becb00a60a3594e0a5d567d4dc6b227dd Mon Sep 17 00:00:00 2001 From: Patrick Hofmann Date: Wed, 5 Feb 2025 16:29:29 +0100 Subject: [PATCH] chore: fix lint errors --- playground/server/tasks/clear-sessions.ts | 2 +- src/runtime/server/utils/session.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playground/server/tasks/clear-sessions.ts b/playground/server/tasks/clear-sessions.ts index f6bfb7d8..6bd6ccee 100644 --- a/playground/server/tasks/clear-sessions.ts +++ b/playground/server/tasks/clear-sessions.ts @@ -3,7 +3,7 @@ export default defineTask({ name: 'clear-sessions', description: 'Clear expired sessions', }, - run({ payload, context }) { + run() { console.log('Running clear-sessions task...') cleanupOrphanedUserSessions() return { result: 'Success' } diff --git a/src/runtime/server/utils/session.ts b/src/runtime/server/utils/session.ts index 5e130aae..c13728b6 100644 --- a/src/runtime/server/utils/session.ts +++ b/src/runtime/server/utils/session.ts @@ -43,17 +43,17 @@ export async function getUserSession(event: UseSessionEvent, extendSession?: boo } return { id: session.id, - ...data + ...data, } } return { - id: session.id + id: session.id, } as UserSession } return { id: session.id, - ...session.data + ...session.data, } } /**