mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
fix: query params error
This commit is contained in:
@@ -16,5 +16,6 @@ export interface User {
|
||||
export async function getUserByEmail(
|
||||
params: GetUserByEmailParams
|
||||
): Promise<User | null> {
|
||||
return client.get('/api/user', { json: params }).json<User | null>();
|
||||
const searchParams = new URLSearchParams({ ...params });
|
||||
return client.get('/api/user', { searchParams }).json<User | null>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user