Skip icon download without an appStoreId

This commit is contained in:
Johannes Zellner
2017-01-19 12:38:41 +01:00
parent 284cb7bee5
commit 62ba031702
+3
View File
@@ -190,6 +190,9 @@ function downloadIcon(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
// nothing to download if we dont have an appStoreId
if (!app.appStoreId) return callback(null);
debugApp(app, 'Downloading icon of %s@%s', app.appStoreId, app.manifest.version);
var iconUrl = config.apiServerOrigin() + '/api/v1/apps/' + app.appStoreId + '/versions/' + app.manifest.version + '/icon';