@social-mail/social-mail-web-server 1.9.27 → 1.9.29
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/dist/server/services/files/SnapshotService.js +1 -1
- package/dist/server/services/files/SnapshotService.js.map +1 -1
- package/dist/server/services/files/WebSiteContentService.d.ts.map +1 -1
- package/dist/server/services/files/WebSiteContentService.js +4 -4
- package/dist/server/services/files/WebSiteContentService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/files/SnapshotService.ts +1 -1
- package/src/server/services/files/WebSiteContentService.ts +5 -7
package/package.json
CHANGED
|
@@ -125,7 +125,7 @@ export default class SnapshotService
|
|
|
125
125
|
|
|
126
126
|
this.ms.snapshotRefresh.notify({ folderID });
|
|
127
127
|
|
|
128
|
-
const ws = await this.wcs.
|
|
128
|
+
const ws = await this.wcs.getCurrentSnapshot(folderID);
|
|
129
129
|
|
|
130
130
|
// in case of design, we need to fix template.html to reference
|
|
131
131
|
// cdn image to reduce load time
|
|
@@ -122,15 +122,13 @@ export default class WebSiteContentService
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
async getCurrentSnapshot(folderID) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (!site) {
|
|
125
|
+
const siteHost = await this.db.websiteFolderHosts.where({ folderID }, (p) => (x) => x.folderID === p.folderID )
|
|
126
|
+
.include((x) => x.folder)
|
|
127
|
+
.first();
|
|
128
|
+
if (!siteHost) {
|
|
130
129
|
return null;
|
|
131
130
|
}
|
|
132
|
-
const { host } =
|
|
133
|
-
.first();
|
|
131
|
+
const { folder: site, host } = siteHost;
|
|
134
132
|
return {
|
|
135
133
|
snapshotFolderID: site.currentVersionID,
|
|
136
134
|
folderID: site.folderID,
|