From e00db283326e382ebbd0f5d6b6b7390d86b513fc Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 22 Feb 2024 09:05:07 -0500 Subject: [PATCH] Update how env var is accessed to satisfy the compiler --- src/services/anchor-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/anchor-service.ts b/src/services/anchor-service.ts index 25a95467c..40d68bd90 100644 --- a/src/services/anchor-service.ts +++ b/src/services/anchor-service.ts @@ -505,7 +505,7 @@ export class AnchorService { await this.ipfsService.storeRecord(ipfsAnchorCommit) // Do not publish to pubsub by default - if (process.env.CAS_PUBSUB_PUBLISH) { + if (process.env['CAS_PUBSUB_PUBLISH']) { // TODO: Remove this case entirely after js-ceramic no longer supports pubsub await this.ipfsService.publishAnchorCommit(anchorCid, candidate.streamId) logger.debug(