backend-manager 3.0.31 → 3.0.32
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/package.json
CHANGED
|
@@ -63,7 +63,8 @@ Utilities.prototype.iterateCollection = function (callback, options) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
callback({
|
|
66
|
-
snap: snap,
|
|
66
|
+
snap: snap,
|
|
67
|
+
docs: snap.docs.map(x => x),
|
|
67
68
|
}, batch)
|
|
68
69
|
.then(r => {
|
|
69
70
|
// Construct a new query starting at this document
|
|
@@ -110,6 +111,10 @@ Utilities.prototype.iterateUsers = function (callback, options) {
|
|
|
110
111
|
|
|
111
112
|
batch++;
|
|
112
113
|
|
|
114
|
+
if (listUsersResult.users.length === 0) {
|
|
115
|
+
return resolve();
|
|
116
|
+
}
|
|
117
|
+
|
|
113
118
|
if (options.log) {
|
|
114
119
|
console.log('Processing batch:', batch);
|
|
115
120
|
}
|