Merge branch 'feat/filesystem_and_search' of https://github.com/toeverything/AFFiNE into feat/filesystem_and_search

This commit is contained in:
tzhangchi
2022-12-23 18:29:57 +08:00
+2 -1
View File
@@ -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>();
}