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 prevUserSearch = search
try { try {
userPageInfo.loading() userPageInfo.loading()
await users.search({ userPage, email: search }) await users.search({
bookmark: userPage,
query: { string: { email: search } },
})
userPageInfo.fetched($users.hasNextPage, $users.nextPage) userPageInfo.fetched($users.hasNextPage, $users.nextPage)
} catch (error) { } catch (error) {
notifications.error("Error getting user list") notifications.error("Error getting user list")

View File

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

View File

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