fix linting errors

This commit is contained in:
2025-02-05 09:02:03 +02:00
parent 5a98ad9346
commit c5ef11e374
8 changed files with 25 additions and 8 deletions

View File

@@ -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} />
}