JOBS: [ 'createdAt' ],
VIDEO_ABUSES: [ 'id', 'createdAt', 'state' ],
VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ],
- VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ],
VIDEO_IMPORTS: [ 'createdAt' ],
VIDEO_COMMENT_THREADS: [ 'createdAt' ],
BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ],
FOLLOWERS: [ 'createdAt' ],
FOLLOWING: [ 'createdAt' ],
- VIDEOS_SEARCH: [ 'match', 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ],
+ VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'trending' ],
+
+ VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'match' ],
VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ]
}
ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous')
}
},
+ TRENDING: {
+ VIDEOS: {
+ INTERVAL_DAYS: config.get<number>('trending.videos.interval_days')
+ }
+ },
ADMIN: {
get EMAIL () { return config.get<string>('admin.email') }
},
LOGIN: {
WINDOW_MS: 5 * 60 * 1000, // 5 minutes
MAX: 15 // 15 attempts
+ },
+ ASK_SEND_EMAIL: {
+ WINDOW_MS: 5 * 60 * 1000, // 5 minutes
+ MAX: 3 // 3 attempts
}
}
const OVERVIEWS = {
VIDEOS: {
- SAMPLE_THRESHOLD: 4,
+ SAMPLE_THRESHOLD: 6,
SAMPLES_COUNT: 2
}
}