@edgedev/firebase 2.1.70 → 2.1.71
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/edgeFirebase.ts +7 -2
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -1389,8 +1389,13 @@ export const EdgeFirebase = class {
|
|
|
1389
1389
|
const canRead = await this.permissionCheck("read", collectionPath);
|
|
1390
1390
|
if (canRead) {
|
|
1391
1391
|
const q = this.getQuery(collectionPath, queryList, orderList, max, last);
|
|
1392
|
-
|
|
1393
|
-
|
|
1392
|
+
let docs;
|
|
1393
|
+
try {
|
|
1394
|
+
docs = await getDocs(q);
|
|
1395
|
+
} catch (error) {
|
|
1396
|
+
console.log('error getting documents')
|
|
1397
|
+
console.error('Error getting documents:', error);
|
|
1398
|
+
}
|
|
1394
1399
|
|
|
1395
1400
|
nextLast = docs.docs[docs.docs.length - 1];
|
|
1396
1401
|
docs.forEach((doc) => {
|