Skip to content

Commit

Permalink
fix(cli): SegmentClient crashes all CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaan Barmore-Genç authored May 27, 2022
2 parents c57ab3d + af02445 commit c540ff2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dendron-cli/src/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AppNames, RuntimeUtils } from "@dendronhq/common-all";
import { SegmentUtils } from "@dendronhq/common-server";
import { SegmentClient, SegmentUtils } from "@dendronhq/common-server";
import { CLIUtils } from "./cli";

export class CLIAnalyticsUtils {
Expand All @@ -23,6 +23,7 @@ export class CLIAnalyticsUtils {

static identify() {
const cliVersion = CLIUtils.getClientVersion();
SegmentClient.unlock();
SegmentUtils.identify({ type: AppNames.CLI, cliVersion });
}

Expand Down

0 comments on commit c540ff2

Please sign in to comment.