Skip to content

Commit

Permalink
deleted not used indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianovide committed Jun 14, 2021
1 parent efb1dd4 commit 9537130
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
16 changes: 0 additions & 16 deletions firestore.indexes.json
@@ -1,13 +1,5 @@
{
"indexes": [
{
"collectionGroup": "photos",
"queryScope": "COLLECTION",
"fields": [
{ "fieldPath": "published", "mode": "ASCENDING" },
{ "fieldPath": "moderated", "mode": "DESCENDING" }
]
},
{
"collectionGroup": "photos",
"queryScope": "COLLECTION",
Expand All @@ -16,14 +8,6 @@
{ "fieldPath": "updated", "mode": "DESCENDING" }
]
},
{
"collectionGroup": "photos",
"queryScope": "COLLECTION",
"fields": [
{ "fieldPath": "published", "mode": "ASCENDING" },
{ "fieldPath": "updated", "mode": "DESCENDING" }
]
},
{
"collectionGroup": "photos",
"queryScope": "COLLECTION",
Expand Down
1 change: 0 additions & 1 deletion src/App.js
Expand Up @@ -316,7 +316,6 @@ class App extends Component {
}

async registerPublishedPhotosRT() {
debugger
if (this.unregisterPublishedPhotosRT) {
await this.unregisterPublishedPhotosRT();
}
Expand Down
5 changes: 1 addition & 4 deletions src/features/firebase/dbFirebase.js
@@ -1,6 +1,6 @@
import firebase from "firebase/app";
import _ from "lodash";

import * as localforage from "localforage";

import appConfig from "custom/config";
Expand Down Expand Up @@ -67,9 +67,6 @@ function publishedPhotosRT(addedFn, modifiedFn, removedFn, errorFn, fromDate) {
">",
firebase.firestore.Timestamp.fromDate(fromDate)
);
} else {
// to date defined. Get le latest 100 so the map will not be empoty.
newPublishedRef = publishedPhotosRef.limit(100);
}

// any published photo
Expand Down

0 comments on commit 9537130

Please sign in to comment.