@edgedev/firebase 2.2.83 → 2.2.84

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/package.json +1 -1
  2. package/src/cms.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "2.2.83",
3
+ "version": "2.2.84",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/src/cms.js CHANGED
@@ -1092,8 +1092,11 @@ exports.onSiteWritten = createKvMirrorHandler({
1092
1092
  document: 'organizations/{orgId}/published-site-settings/{siteId}',
1093
1093
  makeCanonicalKey: ({ orgId, siteId }) =>
1094
1094
  `sites:${orgId}:${siteId}`,
1095
- makeIndexKeys: ({ orgId }, data) => {
1095
+ makeIndexKeys: ({ orgId, siteId }, data) => {
1096
1096
  const keys = []
1097
+ const siteDocId = slug(siteId)
1098
+ if (siteDocId)
1099
+ keys.push(`idx:sites:docId:${orgId}:${siteDocId}:${siteId}`)
1097
1100
  const domains = Array.isArray(data?.domains) ? data.domains : []
1098
1101
  for (const domain of domains) {
1099
1102
  const st = slug(domain)