Skip to content

Commit f58b01d

Browse files
Fix m2m token count name of posthog group
ref DEV-2889
2 parents 04feaf4 + fa76032 commit f58b01d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/lib/analytic/posthog.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (p *PosthogIntegration) SetGroupProperties(ctx context.Context) error {
8989
slog.Int("user_count", g.UserCount),
9090
slog.Int("collaborator_count", g.CollaboratorCount),
9191
slog.Int("application_count", g.ApplicationCount),
92-
slog.Int("m2m_token_created_last_30d", g.M2MTokenCreatedLast30Days),
92+
slog.Int("m2m_token_count_30d", g.M2MTokenCreatedLast30Days),
9393
slog.String("project_plan", g.ProjectPlan),
9494
).Info(ctx, "prepared group")
9595
}
@@ -240,11 +240,11 @@ func (p *PosthogIntegration) makeEventsFromGroups(groups []*PosthogGroup) ([]jso
240240

241241
for _, g := range groups {
242242
group_set := map[string]interface{}{
243-
"mau": g.MAU,
244-
"user_count": g.UserCount,
245-
"collaborator_count": g.CollaboratorCount,
246-
"application_count": g.ApplicationCount,
247-
"monthly_m2m_token_created": g.M2MTokenCreatedLast30Days,
243+
"mau": g.MAU,
244+
"user_count": g.UserCount,
245+
"collaborator_count": g.CollaboratorCount,
246+
"application_count": g.ApplicationCount,
247+
"m2m_token_count_30d": g.M2MTokenCreatedLast30Days,
248248
}
249249
if g.ProjectPlan != "" {
250250
group_set["project_plan"] = g.ProjectPlan

0 commit comments

Comments
 (0)