build fix and remove username

This commit is contained in:
Timur Ercan
2023-01-19 14:18:04 +01:00
parent 45ed02387e
commit 3785d89550
4 changed files with 1 additions and 4 deletions

View File

@ -206,7 +206,7 @@ export default function Setttings() {
</label> </label>
<input <input
disabled disabled
value={user?.email} value={user?.email!}
type="text" type="text"
name="first-name" name="first-name"
id="first-name" id="first-name"

View File

@ -8,7 +8,6 @@ import { toast, Toast, Toaster } from "react-hot-toast";
import Logo from "./logo"; import Logo from "./logo";
type FormValues = { type FormValues = {
username: string;
email: string; email: string;
password: string; password: string;
apiError: string; apiError: string;

View File

@ -27,7 +27,6 @@ model Recipient {
model User { model User {
id Int @id @default(autoincrement()) id Int @id @default(autoincrement())
username String? @unique
name String? name String?
email String @unique email String @unique
emailVerified DateTime? emailVerified DateTime?

View File

@ -15,6 +15,5 @@ declare module "next-auth" {
email_verified?: boolean; email_verified?: boolean;
impersonatedByUID?: number; impersonatedByUID?: number;
belongsToActiveTeam?: boolean; belongsToActiveTeam?: boolean;
username?: PrismaUser["username"];
} }
} }