diff options
Diffstat (limited to 'src/routes.ts')
| -rw-r--r-- | src/routes.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes.ts b/src/routes.ts index d429659..79b6fea 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -11,8 +11,8 @@ import { configOrError } from "./util/config"; import loggerConfig from "./util/logger"; import { Messages } from "./errors"; -const TOKEN = process.env.TOKEN || ""; -const UPLOAD_LIMIT = Number(process.env.UPLOAD_LIMIT || 4194304); +const TOKEN = process.env.TOKEN ?? ""; +const UPLOAD_LIMIT = Number(process.env.UPLOAD_LIMIT ?? 4194304); const HOST_DIR = configOrError("HOST_DIR"); const logger = winston.createLogger(loggerConfig("HTTP")); |
