mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
fixed dependency to ParseYesNoException
This commit is contained in:
parent
d9a032823e
commit
dc58a97c37
1 changed files with 2 additions and 2 deletions
|
@ -24,6 +24,8 @@ interface Config {
|
||||||
signSecret: string
|
signSecret: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ParseYesNoException extends Error {}
|
||||||
|
|
||||||
function parseYesNo (value: string) {
|
function parseYesNo (value: string) {
|
||||||
if (value === 'yes') {
|
if (value === 'yes') {
|
||||||
return true
|
return true
|
||||||
|
@ -41,5 +43,3 @@ export const config: Config = {
|
||||||
alwaysPro: process.env.ALWAYS_PRO ? parseYesNo(process.env.ALWAYS_PRO) : false,
|
alwaysPro: process.env.ALWAYS_PRO ? parseYesNo(process.env.ALWAYS_PRO) : false,
|
||||||
signSecret: process.env.SIGN_SECRET || ''
|
signSecret: process.env.SIGN_SECRET || ''
|
||||||
}
|
}
|
||||||
|
|
||||||
class ParseYesNoException extends Error {}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue