mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
adding zenstack.
This commit is contained in:
@@ -5,11 +5,19 @@ import {CardsWithPagination} from "@/components/wrappers/common/cards-with-pagin
|
||||
import {Button} from "@/components/ui/button";
|
||||
import Link from 'next/link'
|
||||
import {Page, PageActions, PageContent, PageHeader, PageTitle} from "@/features/layout/page";
|
||||
// import {db} from "@/db";
|
||||
import {enhance} from "@zenstackhq/runtime";
|
||||
import {currentUser} from "@/auth/current-user";
|
||||
|
||||
|
||||
export default async function RoutePage(props: PageParams<{}>) {
|
||||
|
||||
const agents = await prisma.agent.findMany({})
|
||||
const user = await currentUser();
|
||||
const db = enhance(prisma, {user: user});
|
||||
|
||||
const agents = await db.agent.findMany()
|
||||
|
||||
console.log("aaaa", agents)
|
||||
|
||||
return (
|
||||
<Page>
|
||||
|
||||
Reference in New Issue
Block a user