Procházet zdrojové kódy

added a todo comment

kaori před 4 roky
rodič
revize
184ff288d7

+ 1 - 0
packages/app/src/server/models/in-app-notification.ts

@@ -98,6 +98,7 @@ inAppNotificationSchema.index({
 inAppNotificationSchema.statics.findLatestInAppNotificationsByUser = function(user, limitNum, offset) {
 inAppNotificationSchema.statics.findLatestInAppNotificationsByUser = function(user, limitNum, offset) {
   const limit = limitNum || 10;
   const limit = limitNum || 10;
 
 
+  // TODO: improve populate refer to GROWI way by GW-7482
   return InAppNotification.find({ user })
   return InAppNotification.find({ user })
     .sort({ createdAt: -1 })
     .sort({ createdAt: -1 })
     .skip(offset)
     .skip(offset)