aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-16 11:56:58 +0100
committerChocobozzz <me@florianbigard.com>2023-02-16 11:56:58 +0100
commite65ef81cf51746616182a822bd6933bf0d16717a (patch)
treeff9e715b50eb690b8fbb5263cf1371d9f8103ff1 /server/helpers
parent5bfe684e76d32a7745671635f8a75f932bd522e4 (diff)
downloadPeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.gz
PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.zst
PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.zip
Update server dependencies
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/logs.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/logs.ts b/server/helpers/custom-validators/logs.ts
index 41d45cbb2..215dbb0e1 100644
--- a/server/helpers/custom-validators/logs.ts
+++ b/server/helpers/custom-validators/logs.ts
@@ -3,8 +3,8 @@ import { CONSTRAINTS_FIELDS } from '@server/initializers/constants'
3import { ClientLogLevel, ServerLogLevel } from '@shared/models' 3import { ClientLogLevel, ServerLogLevel } from '@shared/models'
4import { exists } from './misc' 4import { exists } from './misc'
5 5
6const serverLogLevels: Set<ServerLogLevel> = new Set([ 'debug', 'info', 'warn', 'error' ]) 6const serverLogLevels = new Set<ServerLogLevel>([ 'debug', 'info', 'warn', 'error' ])
7const clientLogLevels: Set<ClientLogLevel> = new Set([ 'warn', 'error' ]) 7const clientLogLevels = new Set<ClientLogLevel>([ 'warn', 'error' ])
8 8
9function isValidLogLevel (value: any) { 9function isValidLogLevel (value: any) {
10 return exists(value) && serverLogLevels.has(value) 10 return exists(value) && serverLogLevels.has(value)