@nger/fk-upload 1.0.48 → 1.0.49
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.
@@ -41,7 +41,6 @@ class DownloadTask extends rabbitmq_1.Task {
|
|
41
41
|
console.log(`download ${url}`);
|
42
42
|
const sub = new rxjs_1.Subject();
|
43
43
|
sub.pipe((0, operators_1.throttleTime)(1000), (0, operators_1.switchMap)((size) => {
|
44
|
-
console.log(`download ${task.filename}: ${length}`);
|
45
44
|
return db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, { size });
|
46
45
|
})).subscribe();
|
47
46
|
// get split size
|
@@ -159,6 +159,9 @@ let FkService = class FkService {
|
|
159
159
|
const data = uploadResult.data;
|
160
160
|
const downUrl = data.path;
|
161
161
|
if (downUrl) {
|
162
|
+
console.log({
|
163
|
+
data
|
164
|
+
});
|
162
165
|
const fullUrl = downUrl.startsWith('http') ? downUrl : `https:` + downUrl;
|
163
166
|
task.uploadUrl = fullUrl;
|
164
167
|
}
|