Fix: Db Profile

Deskripsi:
- Menghapus field imagesId dan imagesBackgroundId
- Menhapus table backgroundImage
- Menghapus component avatar dan header card yang lama
## No Issue
This commit is contained in:
2024-10-03 15:09:38 +08:00
parent ca99de7dd5
commit cf9355e91f
46 changed files with 81 additions and 1060 deletions

View File

@@ -3,7 +3,6 @@ import prisma from "@/app/lib/prisma";
import { revalidatePath } from "next/cache";
export async function funGetUserProfile( userId: string ) {
const user = await prisma.user.findUnique({
where: {
id: userId,
@@ -19,14 +18,8 @@ export async function funGetUserProfile( userId: string ) {
email: true,
jenisKelamin: true,
name: true,
imagesId: true,
ImageProfile: {
select: {
url: true,
},
},
ImagesBackground: true,
imagesBackgroundId: true,
imageId: true,
imageBackgroundId: true,
},
},
},