From 13b4d50ddab454249c98627ba618d491ddc5160b Mon Sep 17 00:00:00 2001 From: Marcos Defendi Date: Wed, 26 Dec 2018 12:04:04 -0200 Subject: [PATCH] Add default to options parameter in listCustomEmoji --- .../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 3556275adf3e..876555266596 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(); }, });