From 005078abbb8f7b82b3bb7f69697d8864eb01800d Mon Sep 17 00:00:00 2001 From: gondzo Date: Tue, 21 May 2019 08:02:23 +0200 Subject: [PATCH] Update to v5 notifications api --- src/routes/notifications/services/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/notifications/services/notifications.js b/src/routes/notifications/services/notifications.js index b328e60a4..83cced905 100644 --- a/src/routes/notifications/services/notifications.js +++ b/src/routes/notifications/services/notifications.js @@ -22,7 +22,7 @@ const markNotificationsSeen = (id) => { } const getNotifications = () => { - return axios.get(`${TC_NOTIFICATION_URL}/list?read=false&limit=${NOTIFICATIONS_LIMIT}`) + return axios.get(`${TC_NOTIFICATION_URL}/list?read=false&per_page=${NOTIFICATIONS_LIMIT}`) .then(resp => prepareNotifications(resp.data.items)) }