Skip to content

Commit

Permalink
change segmentid type to string
Browse files Browse the repository at this point in the history
  • Loading branch information
pjjozefowicz committed Nov 15, 2024
1 parent cf2c035 commit dcb56e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/db/services/dappAnalyticsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ interface ArgFilter {
interface GetMetricsRequest {
breakdown?: boolean;
filters?: Filter[];
segmentId?: number;
segmentId?: string;
}
interface Filter {
name?: string;
Expand All @@ -158,7 +158,7 @@ const buildQueryForFilter = (
filter: Filter,
breakdown: boolean,
metric: "wallets" | "interactions" | "transferredTokens",
segmentId?: number
segmentId?: string
): { query: string; values: any[] } => {
const dapp_activity_table = `"dapp_analytics"."dapp_analytics_${dAppId}"`;
const conditions: string[] = [];
Expand Down Expand Up @@ -264,7 +264,7 @@ const getDataForFilter = async (
filter: Filter,
breakdown: boolean,
metric: "wallets" | "interactions" | "transferredTokens",
segmentId?: number
segmentId?: string
): Promise<Map<string, Map<string, Set<string> | number>>> => {
const { query, values } = buildQueryForFilter(
dAppId,
Expand Down
2 changes: 1 addition & 1 deletion src/validation/dapp-analytics-validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const dappDataMetricsValidation = {
),
})
),
segmentId: Joi.number(),
segmentId: Joi.string(),
}),
};

Expand Down

0 comments on commit dcb56e3

Please sign in to comment.