From cc7045ccf7e424881eff51569f2b649b840ba8e5 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Fri, 24 Apr 2020 19:03:49 -0300 Subject: [PATCH] Add missing cacheKey to mem --- app/emoji-emojione/lib/rocketchat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/emoji-emojione/lib/rocketchat.js b/app/emoji-emojione/lib/rocketchat.js index 8632dcdd4fd3..9c5ee3412a92 100644 --- a/app/emoji-emojione/lib/rocketchat.js +++ b/app/emoji-emojione/lib/rocketchat.js @@ -229,7 +229,7 @@ emojione.emojioneList[':asterisk_symbol:'] = { return `${ m2 }${ alt }`; } return `${ m2 }${ alt }`; - }, { maxAge: 1000 }); + }, { maxAge: 1000, cacheKey: JSON.stringify }); ns.shortnameToImage = function(str) { // replace regular shortnames first