fix exclude cross-locale activities from browser results
This commit is contained in:
parent
baeef1323f
commit
7430e17a52
|
|
@ -340,7 +340,7 @@ async function runBrowse(page = 1, append = false) {
|
|||
collection: props.paragraphsCollection,
|
||||
q: '*',
|
||||
queryBy: QUERY_BY,
|
||||
filterBy: filterBy.value,
|
||||
filterBy: `${filterBy.value} && $${props.mainCollection}(locale:=${locale.value})`,
|
||||
sortBy: `$${props.mainCollection}(timestamp:desc)`,
|
||||
groupBy: props.groupByField,
|
||||
perPage: settings.pageSize,
|
||||
|
|
@ -349,7 +349,6 @@ async function runBrowse(page = 1, append = false) {
|
|||
}]
|
||||
}
|
||||
})
|
||||
console.log('Browse result', multi)
|
||||
if (seq !== searchSeq) return
|
||||
const result = (multi?.results?.[0] as TypesenseSearchResponse | undefined)
|
||||
const rawGroups = result?.groupedHits ?? []
|
||||
|
|
|
|||
Loading…
Reference in New Issue