Skip to content

Commit afcf1f0

Browse files
committed
fix: better handling of the updates download (#2339)
1 parent 5e4dcd2 commit afcf1f0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/back-end/builddata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": "0.47.0",
3-
"build": 17299
3+
"build": 17302
44
}

app/back-end/helpers/updates.helper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class UpdatesHelper {
1111
}
1212

1313
retrieve () {
14-
if (this.forceDownload) {
14+
if (this.forceDownload || !fs.existsSync(this.filePath)) {
1515
this.download();
1616
} else {
1717
this.readExistingData();
@@ -46,8 +46,6 @@ class UpdatesHelper {
4646
if (fs.existsSync(this.filePath)) {
4747
let body = FileHelper.readFileSync(this.filePath, 'utf8');
4848
this.handleResponse(body, false);
49-
} else {
50-
this.sendError();
5149
}
5250
}
5351

0 commit comments

Comments
 (0)