mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
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:
+2
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user