@social-mail/social-mail-web-server 1.4.752 → 1.4.754

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.4.752",
3
+ "version": "1.4.754",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -129,6 +129,11 @@ export default class SnapshotService {
129
129
  if (html) {
130
130
  const htmlFile = await this.tempFileService.createFrom(source.name, Buffer.from(html, "utf8"), "text/html");
131
131
  await this.storage.updateFile(dest, htmlFile);
132
+ await db.appFiles.statements.update({
133
+ fileContentID: dest.fileContentID
134
+ }, {
135
+ appFileID: dest.appFileID
136
+ });
132
137
  }
133
138
  }
134
139
 
@@ -143,6 +148,11 @@ export default class SnapshotService {
143
148
  if (html) {
144
149
  const htmlFile = await this.tempFileService.createFrom(source.name, Buffer.from(html, "utf8"), "text/html");
145
150
  await this.storage.updateFile(dest, htmlFile);
151
+ await db.appFiles.statements.update({
152
+ fileContentID: dest.fileContentID
153
+ }, {
154
+ appFileID: dest.appFileID
155
+ });
146
156
  }
147
157
  }
148
158
 
@@ -360,7 +370,7 @@ export default class SnapshotService {
360
370
  }
361
371
 
362
372
  fileName ??= child.name;
363
- link = `${cdn}/api/site/snapshot/${transform}/${this.root.appFileID}/${child.fileContentID}/${fileName}${query}`;
373
+ link = `${cdn}/api/site/snapshot/${transform}/${this.snapshotRoot.appFileID}/${child.fileContentID}/${fileName}${query}`;
364
374
  return link;
365
375
 
366
376
  }