From 1e09f7a6764edbb0d0c561cb0bea5e2eb8d89c7d Mon Sep 17 00:00:00 2001 From: Sharon Dcruz Date: Tue, 19 Aug 2025 06:54:45 +0000 Subject: [PATCH] notification-bug-fix (#95) Reviewed-on: https://git.cosqnet.com/cosqnet/fitlien-services/pulls/95 Co-authored-by: Sharon Dcruz Co-committed-by: Sharon Dcruz --- firestore.indexes.json | 136 +++++++++-------------------------------- 1 file changed, 29 insertions(+), 107 deletions(-) diff --git a/firestore.indexes.json b/firestore.indexes.json index 53cc445..980f655 100644 --- a/firestore.indexes.json +++ b/firestore.indexes.json @@ -1,95 +1,11 @@ { "indexes": [ - { - "collectionGroup": "day_pass_bookings", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "userId", - "order": "ASCENDING" - }, - { - "fieldPath": "createdAt", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "day_pass_entries", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "bookingId", - "order": "ASCENDING" - }, - { - "fieldPath": "entryDate", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "gyms", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "userId", - "order": "ASCENDING" - }, - { - "fieldPath": "name", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "gyms", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "userId", - "order": "ASCENDING" - }, - { - "fieldPath": "createdAt", - "order": "DESCENDING" - } - ] - }, - { - "collectionGroup": "gyms", - "queryScope": "COLLECTION_GROUP", - "fields": [ - { - "fieldPath": "isApproved", - "order": "ASCENDING" - }, - { - "fieldPath": "createdAt", - "order": "ASCENDING" - } - ] - }, - { - "collectionGroup": "memberships", - "queryScope": "COLLECTION", - "fields": [ - { - "fieldPath": "gymId", - "order": "ASCENDING" - }, - { - "fieldPath": "createdAt", - "order": "DESCENDING" - } - ] - }, - { +{ "collectionGroup": "notifications", "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "data.clientId", + "fieldPath": "data.trainerId", "order": "ASCENDING" }, { @@ -103,11 +19,7 @@ "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "data.clientId", - "order": "ASCENDING" - }, - { - "fieldPath": "type", + "fieldPath": "recipientId", "order": "ASCENDING" }, { @@ -117,52 +29,62 @@ ] }, { - "collectionGroup": "notifications", + "collectionGroup": "workout_logs", "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "type", + "fieldPath": "user_id", "order": "ASCENDING" }, { - "fieldPath": "userId", - "order": "ASCENDING" - }, - { - "fieldPath": "timestamp", + "fieldPath": "date", "order": "DESCENDING" } ] }, { - "collectionGroup": "notifications", + "collectionGroup": "workout_logs", "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "data.ownerId", + "fieldPath": "user_id", "order": "ASCENDING" }, { - "fieldPath": "timestamp", - "order": "DESCENDING" + "fieldPath": "date", + "order": "ASCENDING" } ] }, { - "collectionGroup": "notifications", + "collectionGroup": "workout_logs", "queryScope": "COLLECTION", "fields": [ { - "fieldPath": "data.ownerId", + "fieldPath": "user_id", "order": "ASCENDING" }, { - "fieldPath": "type", + "fieldPath": "start_time", "order": "ASCENDING" }, { - "fieldPath": "timestamp", - "order": "DESCENDING" + "fieldPath": "date", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "terms_and_conditions", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "normalizedName", + "order": "ASCENDING" + }, + { + "fieldPath": "userUid", + "order": "ASCENDING" } ] }