Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hofmann committed Feb 5, 2025
1 parent bcbcd84 commit 242f009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion playground/server/tasks/clear-sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/server/utils/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
/**
Expand Down

0 comments on commit 242f009

Please sign in to comment.