fix(fe/state_updater): uploads are not inited correctly because of initing order

This commit is contained in:
hexxa 2022-01-06 10:49:28 +08:00 committed by Hexxa
parent ff5e6db140
commit 832be61083

View file

@ -423,11 +423,12 @@ export class Updater {
const statuses = await Promise.all([ const statuses = await Promise.all([
this.refreshUploadings(), this.refreshUploadings(),
this.listSharings(), this.listSharings(),
this.initUploads(),
]); ]);
if (statuses.join("") !== "") { if (statuses.join("") !== "") {
return statuses.join(";"); return statuses.join(";");
} }
this.initUploads();
return ""; return "";
}; };