@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/dist/server/services/files/SnapshotService.d.ts.map +1 -1
- package/dist/server/services/files/SnapshotService.js +11 -1
- package/dist/server/services/files/SnapshotService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/services/files/SnapshotService.ts +11 -1
package/package.json
CHANGED
|
@@ -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.
|
|
373
|
+
link = `${cdn}/api/site/snapshot/${transform}/${this.snapshotRoot.appFileID}/${child.fileContentID}/${fileName}${query}`;
|
|
364
374
|
return link;
|
|
365
375
|
|
|
366
376
|
}
|