Filter crew events to only be visible for crew

This commit is contained in:
Hornwitser 2025-03-10 16:26:52 +01:00
parent 13f344472e
commit 4806343250
9 changed files with 96 additions and 17 deletions

View file

@ -1,4 +1,5 @@
import { readAccounts } from "~/server/database";
import { cancelSessionStreams } from "~/server/streams";
export default defineEventHandler(async (event) => {
const session = await getAccountSession(event);
@ -15,5 +16,8 @@ export default defineEventHandler(async (event) => {
}
}
if (session) {
cancelSessionStreams(session.id);
}
await clearAccountSession(event);
})