backend-manager 4.0.31 → 4.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "4.0.31",
3
+ "version": "4.0.32",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -54,8 +54,10 @@ Utilities.prototype.iterateCollection = function (callback, options) {
54
54
  });
55
55
 
56
56
  // Insert orderBy
57
- if (options.orderBy) {
57
+ if (typeof options.orderBy === 'string') {
58
58
  query = query.orderBy(options.orderBy);
59
+ } else if (options.orderBy && typeof options.orderBy === 'object') {
60
+ query = query.orderBy(options.orderBy.field, options.orderBy.direction);
59
61
  }
60
62
 
61
63
  // Process the first batch differently