aboutsummaryrefslogtreecommitdiff
path: root/pages/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index.js')
-rw-r--r--pages/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/index.js b/pages/index.js
index f0b6ce4..79e99ed 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -123,7 +123,7 @@ export default function Home({ detail, populars, sessions }) {
useEffect(() => {
async function userData() {
if (!sessions) return;
- const res = await fetch(`/api/get-user?userName=${sessions?.user.name}`);
+ const res = await fetch(`/api/get-user?id=${sessions?.user.id}`);
const data = await res.json();
const getMedia =