@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.
Files changed (2) hide show
  1. package/edgeFirebase.ts +4 -3
  2. 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 = async(collectionPath = ''): Promise<void> => {
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 = await onSnapshot(q, (querySnapshot) => {
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 = await onSnapshot(q, (querySnapshot) => {
1181
+ const specialPermissionsunsubscribe = onSnapshot(q, (querySnapshot) => {
1181
1182
  const items = {};
1182
1183
  querySnapshot.forEach((doc) => {
1183
1184
  const user = doc.data();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 global composable for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {