diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
commit | e65ef81cf51746616182a822bd6933bf0d16717a (patch) | |
tree | ff9e715b50eb690b8fbb5263cf1371d9f8103ff1 /server/helpers | |
parent | 5bfe684e76d32a7745671635f8a75f932bd522e4 (diff) | |
download | PeerTube-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.ts | 4 |
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' | |||
3 | import { ClientLogLevel, ServerLogLevel } from '@shared/models' | 3 | import { ClientLogLevel, ServerLogLevel } from '@shared/models' |
4 | import { exists } from './misc' | 4 | import { exists } from './misc' |
5 | 5 | ||
6 | const serverLogLevels: Set<ServerLogLevel> = new Set([ 'debug', 'info', 'warn', 'error' ]) | 6 | const serverLogLevels = new Set<ServerLogLevel>([ 'debug', 'info', 'warn', 'error' ]) |
7 | const clientLogLevels: Set<ClientLogLevel> = new Set([ 'warn', 'error' ]) | 7 | const clientLogLevels = new Set<ClientLogLevel>([ 'warn', 'error' ]) |
8 | 8 | ||
9 | function isValidLogLevel (value: any) { | 9 | function isValidLogLevel (value: any) { |
10 | return exists(value) && serverLogLevels.has(value) | 10 | return exists(value) && serverLogLevels.has(value) |