Procházet zdrojové kódy

Added missing activity Type: restoredList

Gustav Engström před 1 rokem
rodič
revize
bfa15d4719
1 změnil soubory, kde provedl 11 přidání a 0 odebrání
  1. 11 0
      models/lists.js

+ 11 - 0
models/lists.js

@@ -465,6 +465,17 @@ if (Meteor.isServer) {
         // list is deleted
         title: doc.title,
       });
+    } else {
+      Activities.insert({
+        userId,
+        type: 'list',
+        activityType: 'restoredList',
+        listId: doc._id,
+        boardId: doc.boardId,
+        // this preserves the name so that the activity can be useful after the
+        // list is deleted
+        title: doc.title,
+      });
     }
   });
 }