Mass updates

This commit is contained in:
2026-01-05 11:33:32 +01:00
parent 32b6cf4af7
commit 04534b2530
36 changed files with 1886 additions and 12036 deletions

View File

@@ -24,7 +24,6 @@ export default defineEventHandler(async (e) => {
members: { with: { member: { columns: { username: true, id: true } } }, columns: { id: false, user: false } },
characters: { with: { character: { columns: { id: true, name: true, owner: true } } }, columns: { character: false } },
owner: { columns: { username: true, id: true } },
logs: { columns: { details: true, target: true, timestamp: true, type: true }, orderBy: ({ timestamp }) => timestamp },
},
where: ({ id: _id }) => eq(_id, parseInt(id, 10)),
}).sync();

View File

@@ -12,7 +12,7 @@ export default defineEventHandler(async (e) => {
}
const id = parseInt(params, 10);
const body = await readValidatedBody(e, CampaignValidation.safeParse);
const body = await readValidatedBody(e, CampaignValidation.partial().safeParse);
if(!body.success)
{
setResponseStatus(e, 400);