We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff51d75 commit 2df57eaCopy full SHA for 2df57ea
src/routes/(app)/settings/account/+page.server.ts
@@ -18,7 +18,7 @@ export const actions = {
18
updateEmail: async ({ request, locals }) => {
19
const updateEmailForm = await superValidate(request, zod(updateEmailDto));
20
if (!updateEmailForm.valid) return fail(StatusCodes.BAD_REQUEST, { updateEmailForm })
21
- const { data, error } = await locals.api.iam.email.sendVerification.$post({ json: updateEmailForm.data }).then(locals.parseApiResponse);
+ const { error } = await locals.api.iam.email.sendVerification.$post({ json: updateEmailForm.data }).then(locals.parseApiResponse);
22
if (error) return setError(updateEmailForm, 'email', error);
23
return { updateEmailForm }
24
},
0 commit comments