From 027169a1d19940b389c3c9a3e8a13043d59839ee Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Thu, 8 May 2014 00:10:14 +0000 Subject: [PATCH] Fix unhandled rejected promises when using admin closes #2707 - adjust call to api.settings.edit now that canThis is in use --- core/server/update-check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/update-check.js b/core/server/update-check.js index 55c144922b..ff82a793b4 100644 --- a/core/server/update-check.js +++ b/core/server/update-check.js @@ -144,10 +144,10 @@ function updateCheckRequest() { function updateCheckResponse(response) { var ops = []; - ops.push(api.settings.edit.call({user: 1}, 'nextUpdateCheck', response.next_check) + ops.push(api.settings.edit.call({internal: true}, 'nextUpdateCheck', response.next_check) .otherwise(errors.rejectError)); - ops.push(api.settings.edit.call({user: 1}, 'displayUpdateNotification', response.version) + ops.push(api.settings.edit.call({internal: true}, 'displayUpdateNotification', response.version) .otherwise(errors.rejectError)); return when.settle(ops).then(function (descriptors) {