mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
working on restore form.
This commit is contained in:
@@ -13,9 +13,11 @@ import Link from "next/link";
|
||||
|
||||
export default async function RoutePage(props: PageParams<{ agentId: string }>) {
|
||||
|
||||
const {agentId} = await props.params
|
||||
|
||||
const agent = await prisma.agent.findUnique({
|
||||
where: {
|
||||
id: props.params.agentId,
|
||||
id: agentId,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -112,7 +114,7 @@ export default async function RoutePage(props: PageParams<{ agentId: string }>)
|
||||
Last contact
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{agent.lastContact?.toDateString() ?? "Never connected"}
|
||||
{agent.lastContact?.toDateString() ?? "Never connected."}
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user