Ver Fonte

added a todo comment

kaori há 4 anos atrás
pai
commit
184ff288d7
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/app/src/server/models/in-app-notification.ts

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