@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.
- package/package.json +1 -1
- package/src/cms.js +4 -1
package/package.json
CHANGED
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)
|