diff --git a/firestore.indexes.json b/firestore.indexes.json index 4aa6594..c305011 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -56,20 +56,6 @@ } ] }, - { - "collectionGroup": "gyms", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "userId", - "order": "ASCENDING" - }, - { - "fieldPath": "name", - "order": "ASCENDING" - } - ] - }, { "collectionGroup": "gyms", "queryScope": "COLLECTION_GROUP", @@ -84,6 +70,20 @@ } ] }, + { + "collectionGroup": "gyms", + "queryScope": "COLLECTION_GROUP", + "fields": [ + { + "fieldPath": "isApproved", + "order": "ASCENDING" + }, + { + "fieldPath": "createdAt", + "order": "ASCENDING" + } + ] + }, { "collectionGroup": "memberships", "queryScope": "COLLECTION",