Skip to content

Commit d633176

Browse files
committed
[fix] HTTP Downloader Task parameter
1 parent 7a2d5aa commit d633176

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobx-restful",
3-
"version": "1.0.0-rc.4",
3+
"version": "1.0.0-rc.5",
44
"license": "LGPL-3.0",
55
"author": "[email protected]",
66
"description": "MobX SDK for RESTful API",

source/Downloader/HTTP.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export class HTTPDownloadTask extends DownloadTask {
1010
});
1111

1212
constructor(path: string, name?: string) {
13-
super(name, path);
13+
super(path, name);
1414

15-
this.id = `http-download-task-${name}`;
15+
this.id = `http-download-task-${this.name}`;
1616

1717
restore(this, this.id);
1818
}

0 commit comments

Comments
 (0)