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