Skip to content

Commit

Permalink
Use default values
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Mar 26, 2020
1 parent d26aec5 commit 473d0ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/server/models/Rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,7 @@ export class Rooms extends Base {
return this.update(query, update);
}

decreaseMessageCountById(_id, count) {
if (count == null) { count = -1; }
decreaseMessageCountById(_id, count = -1) {
const query = { _id };

const update = {
Expand Down

0 comments on commit 473d0ce

Please sign in to comment.