Add public characters and visibility flag

This commit is contained in:
Clément Pons
2025-04-29 17:48:49 +02:00
parent 1ee895ab42
commit 871861e66e
15 changed files with 623 additions and 60 deletions

View File

@@ -25,7 +25,8 @@ export default defineEventHandler(async (e) => {
id: characterTable.id,
name: characterTable.name,
progress: characterTable.progress,
owner: characterTable.owner
owner: characterTable.owner,
visibility: characterTable.visibility,
}).from(characterTable).where(and(eq(characterTable.id, id), eq(characterTable.owner, session.user.id))).get();
if(character !== undefined)