@stemy/backend 3.4.5 → 3.4.6
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.
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
switch (_b.label) {
|
|
1882
1882
|
case 0:
|
|
1883
1883
|
metadata = metadata || {};
|
|
1884
|
-
metadata.filename = url;
|
|
1884
|
+
metadata.filename = metadata.filename || url;
|
|
1885
1885
|
metadata.uploadTime = new Date().getTime();
|
|
1886
1886
|
oneWeek = 1000 * 3600 * 24 * 7;
|
|
1887
1887
|
return [4 /*yield*/, this.find({ filename: url, "metadata.uploadTime": { $gt: metadata.uploadTime - oneWeek } })];
|