diff options
| author | Factiven <[email protected]> | 2023-04-17 14:29:11 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-17 14:29:11 +0700 |
| commit | 89aac9ff49b696e77019e70ed5f9d91e4a112072 (patch) | |
| tree | 48bae9c98cb4cb61ef561fbf3b45040ce9820c38 /pages/index.js | |
| parent | 2nd fixes (diff) | |
| download | moopa-89aac9ff49b696e77019e70ed5f9d91e4a112072.tar.xz moopa-89aac9ff49b696e77019e70ed5f9d91e4a112072.zip | |
3rd fixes
Diffstat (limited to 'pages/index.js')
| -rw-r--r-- | pages/index.js | 2 |
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 = |