-async function updateCustomConfig (req: express.Request, res: express.Response, next: express.NextFunction) {
- const toUpdate: CustomConfig = req.body
-
- // Force number conversion
- toUpdate.cache.previews.size = parseInt('' + toUpdate.cache.previews.size, 10)
- toUpdate.signup.limit = parseInt('' + toUpdate.signup.limit, 10)
- toUpdate.user.videoQuota = parseInt('' + toUpdate.user.videoQuota, 10)
- toUpdate.transcoding.threads = parseInt('' + toUpdate.transcoding.threads, 10)
+async function updateCustomConfig (req: express.Request, res: express.Response) {
+ const oldCustomConfigAuditKeys = new CustomConfigAuditView(customConfig())