Switch to biome for fomatting

This commit is contained in:
Jared Palmer 2024-11-15 10:37:01 -05:00
parent ea6f62c9d6
commit 91aaddda5f
8 changed files with 144 additions and 30 deletions

View file

@ -6,6 +6,8 @@ import { createUser, getUser } from '@/lib/db/queries';
import { signIn } from './auth';
const authFormSchema = z.object({
email: z.string().email(),
password: z.string().min(6),
@ -61,7 +63,7 @@ export const register = async (
password: formData.get('password'),
});
let [user] = await getUser(validatedData.email);
const [user] = await getUser(validatedData.email);
if (user) {
return { status: 'user_exists' } as RegisterActionState;