Rename AcountSession to ServerSession
Start the work of clearly distingushing client side types, server side types and types shared over the API by renaming "AccountSession" and "Session" names used on the server to "ServerSession".
This commit is contained in:
parent
16191a8dd2
commit
251e83f640
15 changed files with 39 additions and 36 deletions
|
@ -3,7 +3,7 @@ import { addStream, deleteStream } from "~/server/streams";
|
|||
import { readAccounts } from "~/server/database";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const session = await getAccountSession(event);
|
||||
const session = await getServerSession(event);
|
||||
let accountId: number | undefined;
|
||||
if (session) {
|
||||
const accounts = await readAccounts()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue