Skip to content

Commit

Permalink
Add default prefix for Metronome customer (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauAraujo authored Apr 5, 2024
1 parent 4f08c0b commit 837c06e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/billing/metronome.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ func (m MetronomeClient) createCustomer(ctx context.Context, orgName string, pro
path := "customers"
projIDStr := strconv.FormatUint(uint64(projectID), 10)

prefix := "Project"
if orgName != "" {
prefix = orgName
}

customer := types.Customer{
Name: fmt.Sprintf("%s - %s", orgName, projectName),
Name: fmt.Sprintf("%s - %s", prefix, projectName),
Aliases: []string{
projIDStr,
},
Expand Down

0 comments on commit 837c06e

Please sign in to comment.