From f389f6555411d95b4e7e57d3ea153a886cb9881d Mon Sep 17 00:00:00 2001 From: Marcos Spessatto Defendi Date: Thu, 27 Dec 2018 17:06:46 -0200 Subject: [PATCH] Add default to options parameter in listCustomEmoji (#13031) Regression: List of custom emojis wasn't working --- .../rocketchat-emoji-custom/server/methods/listEmojiCustom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-emoji-custom/server/methods/listEmojiCustom.js b/packages/rocketchat-emoji-custom/server/methods/listEmojiCustom.js index 3556275adf3..87655526659 100644 --- a/packages/rocketchat-emoji-custom/server/methods/listEmojiCustom.js +++ b/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(); }, });