@infrab4a/connect 1.0.0-beta.15 → 1.0.0-beta.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/bundles/infrab4a-connect.umd.js +2 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +2 -2
- package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +2 -3
- package/fesm2015/infrab4a-connect.js +2 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +1 -1
- package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1729,7 +1729,7 @@
|
|
|
1729
1729
|
fromFirestore: function (snap) {
|
|
1730
1730
|
var data = snap.data();
|
|
1731
1731
|
Object.keys(data).forEach(function (key) {
|
|
1732
|
-
if (data[key]
|
|
1732
|
+
if (typeof data[key] === 'object' && '_seconds' in data[key]) {
|
|
1733
1733
|
data[key] = data[key].toDate();
|
|
1734
1734
|
}
|
|
1735
1735
|
});
|
|
@@ -1843,7 +1843,7 @@
|
|
|
1843
1843
|
case 0:
|
|
1844
1844
|
query = this.collection(this.buildCollectionPathForFind(filters));
|
|
1845
1845
|
query = this.makeFirestoreWhere(query, filters);
|
|
1846
|
-
Object.keys(orderBy).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
|
|
1846
|
+
Object.keys(orderBy || {}).forEach(function (fieldName) { return (query = query.orderBy(fieldName, orderBy[fieldName])); });
|
|
1847
1847
|
return [4 /*yield*/, this.defineLimits(query, filters, limits)];
|
|
1848
1848
|
case 1:
|
|
1849
1849
|
query = _a.sent();
|