Fix for user invitations throwing a 501 error due to the way the search was being performed.
This commit is contained in:
parent
be73255e3a
commit
c43bfda45d
|
@ -112,9 +112,9 @@
|
||||||
}
|
}
|
||||||
await usersFetch.update({
|
await usersFetch.update({
|
||||||
query: {
|
query: {
|
||||||
appId: query || !filterByAppAccess ? null : prodAppId,
|
string: { email: query },
|
||||||
email: query,
|
|
||||||
},
|
},
|
||||||
|
appId: query || !filterByAppAccess ? null : prodAppId,
|
||||||
limit: 50,
|
limit: 50,
|
||||||
paginate: query || !filterByAppAccess ? null : false,
|
paginate: query || !filterByAppAccess ? null : false,
|
||||||
})
|
})
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default class UserFetch extends DataFetch {
|
||||||
let finalQuery
|
let finalQuery
|
||||||
// convert old format to new one - we now allow use of the lucene format
|
// convert old format to new one - we now allow use of the lucene format
|
||||||
const { appId, paginated, ...rest } = query
|
const { appId, paginated, ...rest } = query
|
||||||
if (!LuceneUtils.hasFilters(query) && rest.email) {
|
if (!LuceneUtils.hasFilters(query) && rest.email != null) {
|
||||||
finalQuery = { string: { email: rest.email } }
|
finalQuery = { string: { email: rest.email } }
|
||||||
} else {
|
} else {
|
||||||
finalQuery = rest
|
finalQuery = rest
|
||||||
|
|
Loading…
Reference in New Issue