PR comments - addressing API.searchUser updates.
This commit is contained in:
parent
ccfc98120d
commit
03371005c1
|
@ -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")
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue