@edgedev/firebase 1.5.5 → 1.5.6
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 +1 -1
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -1130,12 +1130,12 @@ export const EdgeFirebase = class {
|
|
|
1130
1130
|
const keys = Object.keys(this.usersByCollections).filter((key) => key.startsWith('ROLES|') || key.startsWith('SPECIALPERMISSIONS|'));
|
|
1131
1131
|
keys.forEach((key) => {
|
|
1132
1132
|
this.stopSnapshot(key);
|
|
1133
|
+
delete this.usersByCollections[key];
|
|
1133
1134
|
});
|
|
1134
1135
|
}
|
|
1135
1136
|
|
|
1136
1137
|
public startUsersSnapshot = (collectionPath = ''): void => {
|
|
1137
1138
|
this.stopUsersSnapshot();
|
|
1138
|
-
this.usersByCollections = {};
|
|
1139
1139
|
for (const collectionPathCheck of this.user.canAssignCollectionPaths) {
|
|
1140
1140
|
|
|
1141
1141
|
if (collectionPathCheck.startsWith(collectionPath.replaceAll('/', '-'))) {
|