fix: don't log telemetry on setup or dummy create

- add a baseCount modal if dev mode for dummy create
This commit is contained in:
18alantom
2022-07-19 13:29:06 +05:30
parent b47347c26a
commit 5945db10dc
2 changed files with 56 additions and 6 deletions
+2 -3
View File
@@ -14,7 +14,7 @@ import {
flow,
getFlowConstant,
getRandomDates,
purchaseItemPartyMap,
purchaseItemPartyMap
} from './helpers';
import items from './items.json';
import logo from './logo';
@@ -29,8 +29,6 @@ export async function setupDummyInstance(
baseCount: number = 1000,
notifier?: Notifier
) {
fyo.store.skipTelemetryLogging = true;
fyo.purgeCache();
notifier?.(fyo.t`Setting Up Instance`, -1);
const options = {
@@ -46,6 +44,7 @@ export async function setupDummyInstance(
chartOfAccounts: 'India - Chart of Accounts',
};
await setupInstance(dbPath, options, fyo);
fyo.store.skipTelemetryLogging = true;
years = Math.floor(years);
notifier?.(fyo.t`Creating Items and Parties`, -1);