]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/request.js
Add like/dislike system for videos
[github/Chocobozzz/PeerTube.git] / server / models / request.js
index de73501fcb9d2e07a58d9939b41c756e6434c076..3a047f7ee43e1dfe0ca2186191eccb09fcd90a61 100644 (file)
@@ -48,6 +48,8 @@ function associate (models) {
 }
 
 function countTotalRequests (callback) {
+  // We need to include Pod because there are no cascade delete when a pod is removed
+  // So we could count requests that do not have existing pod anymore
   const query = {
     include: [ this.sequelize.models.Pod ]
   }