feat(users): fetch user by id from backend

This commit is contained in:
zetaloop
2026-02-28 16:42:33 +08:00
parent f1ae3e04bb
commit 536465aa54
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import { notFound } from "next/navigation"
export default async function UserProfilePage({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params
const user = getUserById(id)
const user = await getUserById(id)
if (!user) {
notFound()