Skip to content

Commit 31d4cea

Browse files
committed
Fix Environment error
1 parent 7fb2669 commit 31d4cea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap/drivers/Environment.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Container } from "inversify"
2-
import { Logger } from "../../logging";
2+
import { Logger } from "../../logging"
33
import { Process } from "../../runtime"
44
import { ObjectValidator, ValidatedObject, isObject } from "../../validation"
55

@@ -28,7 +28,9 @@ export class Environment<O extends ObjectValidator> implements Process {
2828
container.bind(Environment).toConstantValue(this)
2929

3030
try {
31-
this.validatedEnvironment = await isObject(this.validator)(process.env)
31+
this.validatedEnvironment = await isObject(this.validator)(
32+
process.env
33+
)
3234
} catch (e) {
3335
if (container.isBound(Logger)) {
3436
container.get(Logger).error("Environment validation failed!", e)

0 commit comments

Comments
 (0)