Skip to content

Commit

Permalink
Revert "hotfix: allow server to ignore tracking (#1105)" (#1106)
Browse files Browse the repository at this point in the history
This reverts commit 3b4859c.
  • Loading branch information
alaisgomes authored Feb 28, 2024
1 parent 3b4859c commit af89e17
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ Visit our official documentation for more information and try again: https://doc
};

async function dispatcher() {
const args = arg({
"--yes": Boolean
});
// check config if they have been asked opted in or out of amplitude
const hasAskedOptIn = configFile.get(HAS_ASKED_OPT_IN_NAME) || false;
if (!hasAskedOptIn && isUserEnvironment && !args["--yes"]) {
if (!hasAskedOptIn && isUserEnvironment) {
await askOptIn();
}

Expand All @@ -88,7 +85,7 @@ async function dispatcher() {

await commands[command]();

if (!analytics.event.name && !args["--yes"]) {
if (!analytics.event.name) {
analytics.sendEvent({
name: EVENT.OTHER,
properties: {
Expand Down

0 comments on commit af89e17

Please sign in to comment.