Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
knrt10 committed Mar 14, 2019
1 parent 1767dbd commit 6a211f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/server/models/Integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}

Expand Down

0 comments on commit 6a211f2

Please sign in to comment.