mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 01:39:31 +02:00
Fix ReferenceError instead of ParseYesNoException
This commit is contained in:
parent
d9a032823e
commit
98ee0fe94e
1 changed files with 2 additions and 2 deletions
|
@ -34,6 +34,8 @@ function parseYesNo (value: string) {
|
|||
}
|
||||
}
|
||||
|
||||
class ParseYesNoException extends Error {}
|
||||
|
||||
export const config: Config = {
|
||||
mailWhitelist: (process.env.MAIL_WHITELIST || '').split(',').map((item) => item.trim()).filter((item) => item.length > 0),
|
||||
disableSignup: parseYesNo(process.env.DISABLE_SIGNUP || 'no'),
|
||||
|
@ -41,5 +43,3 @@ export const config: Config = {
|
|||
alwaysPro: process.env.ALWAYS_PRO ? parseYesNo(process.env.ALWAYS_PRO) : false,
|
||||
signSecret: process.env.SIGN_SECRET || ''
|
||||
}
|
||||
|
||||
class ParseYesNoException extends Error {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue