@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.719",
3
+ "version": "1.4.721",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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 ${fileID} for ${link}`);
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
  }