Skip to content

Commit 784e9af

Browse files
committed
fix: add appName param in getNotifications function
1 parent 4b23d8c commit 784e9af

2 files changed

Lines changed: 8 additions & 18 deletions

File tree

package-lock.json

Lines changed: 7 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Notifications/data/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const getNotificationsCountApiUrl = () => `${getConfig().LMS_BASE_URL}/ap
66
export const getNotificationsApiUrl = () => `${getConfig().LMS_BASE_URL}/api/notifications/`;
77
export const markNotificationsSeenApiUrl = (appName) => `${getConfig().LMS_BASE_URL}/api/notifications/mark-notifications-unseen/${appName}/`;
88

9-
export async function getNotifications(page, pageSize) {
9+
export async function getNotifications(appName, page, pageSize) {
1010
const { data } = notificationsList;
1111
const startIndex = (page - 1) * pageSize;
1212
const endIndex = startIndex + pageSize;

0 commit comments

Comments
 (0)