Skip to content

Commit

Permalink
Fixing creating person
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexter committed Jun 16, 2023
1 parent 4f2e7ca commit bcb631b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/params/integer.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/routes/m/+new/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bcb631b

Please sign in to comment.