mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: profile issues
This commit is contained in:
parent
b3ef0eb10b
commit
fe38020f02
5 changed files with 74 additions and 26 deletions
|
|
@ -7,7 +7,7 @@ import {
|
|||
getResponseMetadata,
|
||||
} from '@services/utils/ts/requests'
|
||||
|
||||
export async function getUser(user_id: string, access_token: string) {
|
||||
export async function getUser(user_id: string) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}users/id/${user_id}`,
|
||||
RequestBody('GET', null, null)
|
||||
|
|
@ -16,7 +16,7 @@ export async function getUser(user_id: string, access_token: string) {
|
|||
return res
|
||||
}
|
||||
|
||||
export async function getUserByUsername(username: string, access_token: string) {
|
||||
export async function getUserByUsername(username: string) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}users/username/${username}`,
|
||||
RequestBody('GET', null, null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue