From 9be19286ae0326cbafec82f324e1a1fb6f986404 Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari Date: Thu, 30 May 2019 15:21:32 +0530 Subject: [PATCH] setting old response format --- src/controllers/NotificationController.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/controllers/NotificationController.js b/src/controllers/NotificationController.js index d4ce321..5f91450 100644 --- a/src/controllers/NotificationController.js +++ b/src/controllers/NotificationController.js @@ -27,7 +27,20 @@ function* listNotifications(req, res) { }); res.set(headers); - res.json(items); + + /** + * disabling v5 API feature temporarily for connect-app (backward compatibility) + */ + + //res.json(items); + + // TODO disable this and revert to original + res.json({ + items, + offset: currentPage, + limit: perPage, + totalCount: total + }) } function* updateNotification(req, res) {