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(