Skip to content

Commit

Permalink
Update how env var is accessed to satisfy the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody committed Feb 22, 2024
1 parent 88d656c commit e00db28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/anchor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e00db28

Please sign in to comment.