Skip to content

Commit

Permalink
add metametricsid in state export
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMassart committed Dec 10, 2024
1 parent 2adeecd commit 7d782da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/util/logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Buffer } from 'buffer';
import Logger from '../../util/Logger';
import { RootState } from '../../reducers';
import Device from '../../util/device';
import {MetaMetrics} from '../../core/Analytics';

// TODO: Replace "any" with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any, import/prefer-default-export
Expand Down Expand Up @@ -57,6 +58,7 @@ export const downloadStateLogs = async (
const appName = await getApplicationName();
const appVersion = await getVersion();
const buildNumber = await getBuildNumber();
const metaMetricsId = await MetaMetrics.getInstance().getMetaMetricsId();
const path =
RNFS.DocumentDirectoryPath +
`/state-logs-v${appVersion}-(${buildNumber}).json`;
Expand All @@ -68,6 +70,7 @@ export const downloadStateLogs = async (
...fullState,
appVersion,
buildNumber,
metaMetricsId,
},
loggedIn,
);
Expand Down

0 comments on commit 7d782da

Please sign in to comment.