fix: add appName param in getNotifications function

This commit is contained in:
Awais Ansari
2023-06-06 15:16:06 +05:00
parent 4b23d8c4e4
commit 784e9afccf
2 changed files with 8 additions and 18 deletions

View File

@@ -6,7 +6,7 @@ export const getNotificationsCountApiUrl = () => `${getConfig().LMS_BASE_URL}/ap
export const getNotificationsApiUrl = () => `${getConfig().LMS_BASE_URL}/api/notifications/`;
export const markNotificationsSeenApiUrl = (appName) => `${getConfig().LMS_BASE_URL}/api/notifications/mark-notifications-unseen/${appName}/`;
export async function getNotifications(page, pageSize) {
export async function getNotifications(appName, page, pageSize) {
const { data } = notificationsList;
const startIndex = (page - 1) * pageSize;
const endIndex = startIndex + pageSize;