From 6a211f253bb28db1f9a7c11a49fdcf98a190b709 Mon Sep 17 00:00:00 2001 From: knrt10 Date: Thu, 14 Mar 2019 17:43:35 +0530 Subject: [PATCH] CI fix --- app/models/server/models/Integrations.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/server/models/Integrations.js b/app/models/server/models/Integrations.js index 0507e46e763f..2d9128c99cd7 100644 --- a/app/models/server/models/Integrations.js +++ b/app/models/server/models/Integrations.js @@ -21,8 +21,7 @@ export class Integrations extends Base { updateRoomName(oldRoomName, newRoomName) { const hashedOldRoomName = `#${ oldRoomName }`; const hashedNewRoomName = `#${ newRoomName }`; - const changedNumber = Integrations.update({ channel: hashedOldRoomName }, { $set: { 'channel.$': hashedNewRoomName } }, { multi: true }); - return changedNumber; + return this.update({ channel: hashedOldRoomName }, { $set: { 'channel.$': hashedNewRoomName } }, { multi: true }); } }