@budibase/backend-core 2.22.13 → 2.22.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -63668,7 +63668,8 @@ function removeUserPassword(users) {
63668
63668
  function isSupportedUserSearch(query) {
63669
63669
  const allowed = [
63670
63670
  { op: "string" /* STRING */, key: "email" },
63671
- { op: "equal" /* EQUAL */, key: "_id" }
63671
+ { op: "equal" /* EQUAL */, key: "_id" },
63672
+ { op: "oneOf" /* ONE_OF */, key: "_id" }
63672
63673
  ];
63673
63674
  for (let [key, operation] of Object.entries(query)) {
63674
63675
  if (typeof operation !== "object") {
@@ -63847,6 +63848,10 @@ async function paginatedUsers({
63847
63848
  } else if (query?.string?.email) {
63848
63849
  userList = await searchGlobalUsersByEmail(query?.string?.email, opts);
63849
63850
  property = "email";
63851
+ } else if (query?.oneOf?._id) {
63852
+ userList = await bulkGetGlobalUsersById(query?.oneOf?._id, {
63853
+ cleanup: true
63854
+ });
63850
63855
  } else {
63851
63856
  const response = await db.allDocs(getGlobalUserParams(null, opts));
63852
63857
  userList = response.rows.map((row) => row.doc);