Add default to options parameter in listCustomEmoji (#13031)

Regression: List of custom emojis wasn't working
pull/13045/head
Marcos Spessatto Defendi 7 years ago committed by Rodrigo Nascimento
parent 75f1c1939e
commit f389f65554
  1. 2
      packages/rocketchat-emoji-custom/server/methods/listEmojiCustom.js

@ -2,7 +2,7 @@ import { Meteor } from 'meteor/meteor';
import { RocketChat } from 'meteor/rocketchat:lib';
Meteor.methods({
listEmojiCustom(options) {
listEmojiCustom(options = {}) {
return RocketChat.models.EmojiCustom.find(options).fetch();
},
});

Loading…
Cancel
Save