Skip to content

Commit 9287875

Browse files
committed
Added hack for test
1 parent 828fa84 commit 9287875

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/(v2)/v2/issue-358/+page.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export const actions = {
2020

2121
// Forgot to update email
2222
db.name = form.data.name;
23+
// @ts-expect-error Hack to prevent updating the missing schema field, it will be updated by the load function.
24+
delete form.data.email;
2325

2426
return message(form, 'Form posted successfully!');
2527
}

0 commit comments

Comments
 (0)