Browse Source

added a todo comment

kaori 4 years ago
parent
commit
b353882590
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/app/src/server/routes/apiv3/in-app-notification.ts

+ 6 - 0
packages/app/src/server/routes/apiv3/in-app-notification.ts

@@ -21,6 +21,12 @@ module.exports = () => {
 
 
     const requestLimit = limit + 1;
     const requestLimit = limit + 1;
 
 
+
+    /**
+     * TODO: GW-7482
+     *   -  Replace then/catch to async/awai
+     *   -  Use mongoose-paginate-v2 related to paging
+     */
     InAppNotification.findLatestInAppNotificationsByUser(user._id, requestLimit, offset)
     InAppNotification.findLatestInAppNotificationsByUser(user._id, requestLimit, offset)
       .then((notifications) => {
       .then((notifications) => {
         let hasPrev = false;
         let hasPrev = false;