@social-mail/social-mail-web-server 1.9.30 → 1.9.32

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.9.30",
3
+ "version": "1.9.32",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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.getCurrentSnapshot(folderID);
128
+ const ws = await this.wcs.getCurrentSnapshot(folderID, snapshotRoot.appFileID);
129
129
 
130
130
  // in case of design, we need to fix template.html to reference
131
131
  // cdn image to reduce load time
@@ -134,7 +134,6 @@ export default class SnapshotService
134
134
  && x.name === "template.html")
135
135
  .first();
136
136
  if (templateFile) {
137
- console.log(`Rewriting template.html`);
138
137
  const templateFileContent = await this.wcs.getSnapshotFile(ws, ["template.html"]);
139
138
  // we need to save the file content..
140
139
  await this.storage.updateFile(templateFile, templateFileContent);
@@ -121,7 +121,7 @@ export default class WebSiteContentService
121
121
  } as ISiteFolder;
122
122
  }
123
123
 
124
- async getCurrentSnapshot(folderID) {
124
+ async getCurrentSnapshot(folderID, currentVersionID) {
125
125
  const siteHost = await this.db.websiteFolderHosts.where({ folderID }, (p) => (x) => x.folderID === p.folderID )
126
126
  .include((x) => x.folder)
127
127
  .first();
@@ -129,6 +129,7 @@ export default class WebSiteContentService
129
129
  return null;
130
130
  }
131
131
  const { folder: site, host } = siteHost;
132
+ site.currentVersionID = currentVersionID;
132
133
  return {
133
134
  snapshotFolderID: site.currentVersionID,
134
135
  folderID: site.folderID,