@social-mail/social-mail-web-server 1.4.719 → 1.4.721
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 +1 -1
- package/dist/server/services/files/SnapshotService.d.ts.map +1 -1
- package/dist/server/services/files/SnapshotService.js +4 -4
- 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 +3 -3
package/package.json
CHANGED
|
@@ -248,13 +248,13 @@ export default class SnapshotService {
|
|
|
248
248
|
* @returns
|
|
249
249
|
*/
|
|
250
250
|
@cacheFor()
|
|
251
|
-
async getRelativePath(fileID, link) {
|
|
251
|
+
async getRelativePath(fileID, link,fileName) {
|
|
252
252
|
try {
|
|
253
253
|
const file = await this.db.appFiles
|
|
254
254
|
.where({ fileID }, (p) => (x) => x.appFileID === p.fileID)
|
|
255
255
|
.first();
|
|
256
256
|
if (!file) {
|
|
257
|
-
console.warn(`File not found for ${
|
|
257
|
+
console.warn(`File ${fileID} not found for ${link} in ${fileName}`);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
const [ ignore , ... fileIDs] = file.path.split("/").filter((x) => x) as any[];
|
|
@@ -334,7 +334,7 @@ export default class SnapshotService {
|
|
|
334
334
|
}
|
|
335
335
|
const tokens = link.split("/");
|
|
336
336
|
transform = tokens[3];
|
|
337
|
-
paths = await this.getRelativePath(tokens[5], link);
|
|
337
|
+
paths = await this.getRelativePath(tokens[5], link, srcFileName);
|
|
338
338
|
if (!paths) {
|
|
339
339
|
return;
|
|
340
340
|
}
|