From 6f7ab5861e29b4c534c4efef843e0d6974960c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 22 Aug 2019 11:08:14 -0400 Subject: [PATCH] feat: promisify recent.getData --- src/controllers/recent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/recent.js b/src/controllers/recent.js index a223924c75..2e24641bee 100644 --- a/src/controllers/recent.js +++ b/src/controllers/recent.js @@ -91,3 +91,5 @@ async function canPostTopic(uid) { cids = await privileges.categories.filterCids('topics:create', cids, uid); return cids.length > 0; } + +require('../promisify')(recentController, ['get']);