@budibase/backend-core 2.22.14 → 2.22.16
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 +6 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/src/users/users.d.ts +1 -1
- package/dist/src/users/users.js +8 -2
- package/dist/src/users/users.js.map +1 -1
- package/dist/tests/core/utilities/testContainerUtils.d.ts +25 -0
- package/dist/tests/core/utilities/testContainerUtils.js +35 -13
- package/dist/tests/core/utilities/testContainerUtils.js.map +1 -1
- package/package.json +4 -4
- package/src/users/users.ts +9 -4
- package/tests/core/utilities/testContainerUtils.ts +38 -14
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);
|