@stemy/backend 3.5.8 → 3.5.9

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.
@@ -1798,9 +1798,10 @@
1798
1798
  case 0:
1799
1799
  metadata = metadata || {};
1800
1800
  metadata.filename = metadata.filename || url;
1801
+ metadata.url = url;
1801
1802
  metadata.uploadTime = new Date().getTime();
1802
1803
  oneWeek = 1000 * 3600 * 24 * 7;
1803
- return [4 /*yield*/, this.find({ filename: url, "metadata.uploadTime": { $gt: metadata.uploadTime - oneWeek } })];
1804
+ return [4 /*yield*/, this.find({ "metadata.url": url, "metadata.uploadTime": { $gt: metadata.uploadTime - oneWeek } })];
1804
1805
  case 1:
1805
1806
  asset = _b.sent();
1806
1807
  if (asset)