diff --git a/src/params/integer.ts b/src/params/integer.ts deleted file mode 100644 index 4d480af..0000000 --- a/src/params/integer.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { ParamMatcher } from '@sveltejs/kit'; - -export const match = ((param) => { - return /^\d+$/.test(param); -}) satisfies ParamMatcher; diff --git a/src/routes/m/+new/+page.server.ts b/src/routes/m/+new/+page.server.ts index 13434d2..48c50cc 100644 --- a/src/routes/m/+new/+page.server.ts +++ b/src/routes/m/+new/+page.server.ts @@ -17,10 +17,10 @@ export const actions: Actions = { Array.from(data.entries()).filter(([, value]) => Boolean(value)) ); - const result = await createPerson.mutate({ person }, { event }); + const result = await createPerson.mutate({ person }, { event, metadata: { isBoard: true } }); if (result.data) { - throw redirect(302, `/m/${result.data.person?.name}`); + throw redirect(302, `/m/${result.data.person?.id}`); } return result; }