aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 1f9876c4b..55c555d04 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -4,7 +4,10 @@
4const API_VERSION = 'v1' 4const API_VERSION = 'v1'
5 5
6// Score a pod has when we create it as a friend 6// Score a pod has when we create it as a friend
7let FRIEND_BASE_SCORE = 100 7const FRIEND_SCORE = {
8 BASE: 100,
9 MAX: 1000
10}
8 11
9// Time to wait between requests to the friends (10 min) 12// Time to wait between requests to the friends (10 min)
10let INTERVAL = 600000 13let INTERVAL = 600000
@@ -54,7 +57,7 @@ const VIDEOS_CONSTRAINTS_FIELDS = {
54 57
55// Special constants for a test instance 58// Special constants for a test instance
56if (isTestInstance() === true) { 59if (isTestInstance() === true) {
57 FRIEND_BASE_SCORE = 20 60 FRIEND_SCORE.BASE = 20
58 INTERVAL = 10000 61 INTERVAL = 10000
59 VIDEOS_CONSTRAINTS_FIELDS.DURATION.max = 14 62 VIDEOS_CONSTRAINTS_FIELDS.DURATION.max = 14
60} 63}
@@ -63,7 +66,7 @@ if (isTestInstance() === true) {
63 66
64module.exports = { 67module.exports = {
65 API_VERSION: API_VERSION, 68 API_VERSION: API_VERSION,
66 FRIEND_BASE_SCORE: FRIEND_BASE_SCORE, 69 FRIEND_SCORE: FRIEND_SCORE,
67 INTERVAL: INTERVAL, 70 INTERVAL: INTERVAL,
68 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 71 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
69 PODS_SCORE: PODS_SCORE, 72 PODS_SCORE: PODS_SCORE,