fix linting errors
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
'use server'
|
||||
|
||||
import {Category} from '@prisma/client'
|
||||
|
||||
import AppCatalogRender from '@/components/shared/sidebar/app-catalog-render'
|
||||
import {db} from '@/lib/db/prisma/client'
|
||||
|
||||
const appCatalog = async () => {
|
||||
const appCatalog = async (): Promise<Category[] | null> => {
|
||||
return db.category.findMany({
|
||||
include: {
|
||||
locales: true
|
||||
@@ -12,5 +14,7 @@ const appCatalog = async () => {
|
||||
}
|
||||
|
||||
export default async function AppCatalog() {
|
||||
return <AppCatalogRender items={await appCatalog()} />
|
||||
const categories: Category[] | null = await appCatalog()
|
||||
// @ts-ignore
|
||||
return <AppCatalogRender items={categories} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user