فهرست منبع

remove unneecessary default num

kaori 4 سال پیش
والد
کامیت
5162735c19
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      packages/app/src/server/service/in-app-notification.ts

+ 1 - 2
packages/app/src/server/service/in-app-notification.ts

@@ -82,8 +82,7 @@ export default class InAppNotificationService {
   }
 
   getLatestNotificationsByUser = async(userId, queryOptions) => {
-    const { offset } = queryOptions;
-    const limit = queryOptions.limit || 10;
+    const { offset, limit } = queryOptions;
 
     try {
       const paginationResult = await InAppNotification.paginate(