From 43051cea3bc76944a79a398977de5693d2c6cc1e Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 30 Apr 2016 20:25:01 -0700 Subject: [PATCH] add app update event --- src/routes/apps.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/apps.js b/src/routes/apps.js index 6ce5580da..bea11d970 100644 --- a/src/routes/apps.js +++ b/src/routes/apps.js @@ -291,6 +291,8 @@ function updateApp(req, res, next) { if (error && error.reason === AppsError.PORT_CONFLICT) return next(new HttpError(409, 'Port ' + error.message + ' is already in use.')); if (error) return next(new HttpError(500, error)); + eventlog.add(eventlog.ACTION_APP_UPDATE, req, { id: req.params.id, appStoreId: data.manifest.id, toVersion: data.manifest.version }); + next(new HttpSuccess(202, { })); }); }