1
0
Fork 0
mirror of synced 2024-10-03 10:36:59 +13:00

PR comments - addressing API.searchUser updates.

This commit is contained in:
mike12345567 2023-10-13 12:23:28 +01:00
parent ccfc98120d
commit 03371005c1
3 changed files with 9 additions and 3 deletions

View file

@ -123,7 +123,10 @@
prevUserSearch = search
try {
userPageInfo.loading()
await users.search({ userPage, email: search })
await users.search({
bookmark: userPage,
query: { string: { email: search } },
})
userPageInfo.fetched($users.hasNextPage, $users.nextPage)
} catch (error) {
notifications.error("Error getting user list")

View file

@ -31,7 +31,10 @@
prevSearch = search
try {
pageInfo.loading()
await users.search({ page, email: search })
await users.search({
bookmark: page,
query: { string: { email: search } },
})
pageInfo.fetched($users.hasNextPage, $users.nextPage)
} catch (error) {
notifications.error("Error getting user list")

View file

@ -27,7 +27,7 @@
const email = Object.values(searchParams.query.string)[0]
const results = await API.searchUsers({
email,
query: { string: { email } },
})
// Mapping to the expected data within RelationshipCell