From da14ee8e14a400ada75ee7f98b5088a210713fe8 Mon Sep 17 00:00:00 2001 From: Jay McDoniel Date: Thu, 19 Dec 2019 22:09:17 -0800 Subject: [PATCH] fix(service): makes ogma instance optional in service ctor --- src/ogma.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ogma.service.ts b/src/ogma.service.ts index 1b3a2a4f8..d2e6b8e40 100644 --- a/src/ogma.service.ts +++ b/src/ogma.service.ts @@ -19,7 +19,7 @@ export class OgmaService implements LoggerService { public log = this.info; constructor( - @Optional() @Inject(OGMA_INSTANCE) ogma: Ogma, + @Optional() @Inject(OGMA_INSTANCE) ogma?: Ogma, @Optional() @Inject(OGMA_CONTEXT) context?: string, ) { this.context = context || '';