diff --git a/server/src/routes/v2/apps.js b/server/src/routes/v2/apps.js index 120ce99dc..b9ab230d9 100644 --- a/server/src/routes/v2/apps.js +++ b/server/src/routes/v2/apps.js @@ -250,6 +250,12 @@ module.exports = [ `Fetching file for ${appVersion.appId} / ${appVersion.id}` ) + appVersionService + .incrementDownloadCount(appVersion.id, db) + .catch(e => + request.logger.error('Failed to increment download', e) + ) + return h .response(file.Body) .type('application/zip')