@umituz/react-native-subscription 2.14.64 → 2.14.65
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.65",
|
|
4
4
|
"description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -37,8 +37,8 @@ export class CreditsRepository extends BaseRepository {
|
|
|
37
37
|
|
|
38
38
|
private getCreditsDocRef(db: Firestore, userId: string) {
|
|
39
39
|
if (this.config.useUserSubcollection) {
|
|
40
|
-
// Path: users/{userId} - credits stored
|
|
41
|
-
return doc(db, "users", userId);
|
|
40
|
+
// Path: users/{userId}/credits/balance - credits stored in user subcollection
|
|
41
|
+
return doc(db, "users", userId, "credits", "balance");
|
|
42
42
|
}
|
|
43
43
|
return doc(db, this.config.collectionName, userId);
|
|
44
44
|
}
|