Browse Source

fix type issues

this still breaks useFetch as the route returns null
pull/2037/head
Bernd Storath 2 weeks ago
parent
commit
8bb35e1cd9
  1. 4
      src/nuxt.config.ts
  2. 2
      src/server/api/session.get.ts

4
src/nuxt.config.ts

@ -90,5 +90,5 @@ export default defineNuxtConfig({
},
alias: {
'#db': fileURLToPath(new URL('./server/database/', import.meta.url)),
}
})
},
});

2
src/server/api/session.get.ts

@ -3,7 +3,7 @@ export default defineEventHandler(async (event) => {
if (!session.data.userId) {
// not logged in
return {};
return null;
}
const user = await Database.users.get(session.data.userId);

Loading…
Cancel
Save