fix: resolve typescript build errors in page and admin actions
This commit is contained in:
@@ -5,7 +5,7 @@ export const dynamic = 'force-dynamic';
|
||||
|
||||
export default async function Page() {
|
||||
try {
|
||||
const restaurant = await (prisma as any).restaurant.findFirst({
|
||||
const restaurant = await prisma.restaurant.findFirst({
|
||||
orderBy: { createdAt: 'desc' },
|
||||
include: {
|
||||
categories: {
|
||||
@@ -44,7 +44,7 @@ export default async function Page() {
|
||||
ingredients: item.ingredients,
|
||||
tasteProfile: item.tasteProfile,
|
||||
grapeVariety: item.grapeVariety,
|
||||
price: item.price,
|
||||
price: item.price as any,
|
||||
})),
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user