@edgedev/firebase 1.5.3 → 1.5.5
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 +4 -3
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -1133,8 +1133,9 @@ export const EdgeFirebase = class {
|
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
1135
|
|
|
1136
|
-
public startUsersSnapshot =
|
|
1136
|
+
public startUsersSnapshot = (collectionPath = ''): void => {
|
|
1137
1137
|
this.stopUsersSnapshot();
|
|
1138
|
+
this.usersByCollections = {};
|
|
1138
1139
|
for (const collectionPathCheck of this.user.canAssignCollectionPaths) {
|
|
1139
1140
|
|
|
1140
1141
|
if (collectionPathCheck.startsWith(collectionPath.replaceAll('/', '-'))) {
|
|
@@ -1147,7 +1148,7 @@ export const EdgeFirebase = class {
|
|
|
1147
1148
|
collectionPathCheck
|
|
1148
1149
|
)
|
|
1149
1150
|
)
|
|
1150
|
-
const rolesUnsubscribe =
|
|
1151
|
+
const rolesUnsubscribe = onSnapshot(q, (querySnapshot) => {
|
|
1151
1152
|
const items = {};
|
|
1152
1153
|
querySnapshot.forEach((doc) => {
|
|
1153
1154
|
const user = doc.data();
|
|
@@ -1177,7 +1178,7 @@ export const EdgeFirebase = class {
|
|
|
1177
1178
|
)
|
|
1178
1179
|
)
|
|
1179
1180
|
|
|
1180
|
-
const specialPermissionsunsubscribe =
|
|
1181
|
+
const specialPermissionsunsubscribe = onSnapshot(q, (querySnapshot) => {
|
|
1181
1182
|
const items = {};
|
|
1182
1183
|
querySnapshot.forEach((doc) => {
|
|
1183
1184
|
const user = doc.data();
|