Put config redundancy strategies in "strategies" subkey

This commit is contained in:
Chocobozzz
2018-09-19 16:12:07 +02:00
parent 12ba460e9e
commit d9bdd007d7
9 changed files with 46 additions and 40 deletions

View File

@@ -23,7 +23,7 @@ async function getStats (req: express.Request, res: express.Response, next: expr
const { totalInstanceFollowers, totalInstanceFollowing } = await ActorFollowModel.getStats()
const videosRedundancyStats = await Promise.all(
CONFIG.REDUNDANCY.VIDEOS.map(r => {
CONFIG.REDUNDANCY.VIDEOS.STRATEGIES.map(r => {
return VideoRedundancyModel.getStats(r.strategy)
.then(stats => Object.assign(stats, { strategy: r.strategy, totalSize: r.size }))
})