]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/config.ts
Fix old DB enum names
[github/Chocobozzz/PeerTube.git] / server / controllers / api / config.ts
index 19bd2888cf8fe1f6518b18814a9697014cc606cc..f0fb43071b82cd501149c70c065cfd15467b25fa 100644 (file)
@@ -10,7 +10,6 @@ import { CONFIG, reloadConfig } from '../../initializers/config'
 import { ClientHtml } from '../../lib/client-html'
 import { asyncMiddleware, authenticate, ensureUserHasRight, openapiOperationDoc } from '../../middlewares'
 import { customConfigUpdateValidator, ensureConfigIsEditable } from '../../middlewares/validators/config'
-import { logger } from '@server/helpers/logger'
 
 const configRouter = express.Router()
 
@@ -113,7 +112,6 @@ async function updateCustomConfig (req: express.Request, res: express.Response)
 
   const data = customConfig()
 
-  logger.info('coucou', { data })
   auditLogger.update(
     getAuditIdFromRes(res),
     new CustomConfigAuditView(data),
@@ -275,6 +273,10 @@ function customConfig (): CustomConfig {
         torrent: {
           enabled: CONFIG.IMPORT.VIDEOS.TORRENT.ENABLED
         }
+      },
+      videoChannelSynchronization: {
+        enabled: CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED,
+        maxPerUser: CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.MAX_PER_USER
       }
     },
     trending: {