Skip to content

Commit acab928

Browse files
author
sachin-maheshwari
authored
Merge pull request #137 from topcoder-platform/hotfix/V5-API-Standards
Fixing old response format issue for 'list' call
2 parents 3ef5a5f + 9be1928 commit acab928

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/controllers/NotificationController.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,20 @@ function* listNotifications(req, res) {
2727
});
2828

2929
res.set(headers);
30-
res.json(items);
30+
31+
/**
32+
* disabling v5 API feature temporarily for connect-app (backward compatibility)
33+
*/
34+
35+
//res.json(items);
36+
37+
// TODO disable this and revert to original
38+
res.json({
39+
items,
40+
offset: currentPage,
41+
limit: perPage,
42+
totalCount: total
43+
})
3144
}
3245

3346
function* updateNotification(req, res) {

0 commit comments

Comments
 (0)