Przeglądaj źródła

remove unneecessary default num

kaori 4 lat temu
rodzic
commit
5162735c19

+ 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(