aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/request.js')
-rw-r--r--server/models/request.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/request.js b/server/models/request.js
index de73501fc..3a047f7ee 100644
--- a/server/models/request.js
+++ b/server/models/request.js
@@ -48,6 +48,8 @@ function associate (models) {
48} 48}
49 49
50function countTotalRequests (callback) { 50function countTotalRequests (callback) {
51 // We need to include Pod because there are no cascade delete when a pod is removed
52 // So we could count requests that do not have existing pod anymore
51 const query = { 53 const query = {
52 include: [ this.sequelize.models.Pod ] 54 include: [ this.sequelize.models.Pod ]
53 } 55 }