refactor: changed per_page to 30 (#1734)

This commit is contained in:
Dakshesh Jain 2023-08-01 11:19:06 +05:30 committed by GitHub
parent cc2e6182b6
commit 7287c27b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -285,8 +285,7 @@ export const getPaginatedNotificationKey = (
if (index === 0)
return `/api/workspaces/${workspaceSlug}/users/notifications?${objToQueryParams({
...params,
// TODO: change to '100:0:0'
cursor: "2:0:0",
cursor: "30:0:0",
})}`;
const cursor = prevData?.next_cursor;

View File

@ -15,8 +15,7 @@ import { UNREAD_NOTIFICATIONS_COUNT, getPaginatedNotificationKey } from "constan
// type
import type { NotificationType, NotificationCount } from "types";
// TODO: change to 100
const PER_PAGE = 2;
const PER_PAGE = 30;
const useUserNotification = () => {
const router = useRouter();