Fix another Bluebird removal bug

Use of `Promise.map()`
This commit is contained in:
Dan Stillman 2025-07-27 01:44:36 -04:00
parent e07ac6243c
commit b7c2002b63

View file

@ -724,11 +724,11 @@ Zotero.Search.prototype.search = async function (asTempTable) {
// Search the full-text content
else if (scopeIDs.length) {
let found = new Set(
await Zotero.Fulltext.findTextInItems(
(await Zotero.Fulltext.findTextInItems(
scopeIDs,
condition.value,
condition.mode
).map(x => x.id)
)).map(x => x.id)
);
// Either include or exclude the results, depending on the operator
filteredIDs = scopeIDs.filter((id) => {