Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/controllers/NotificationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down