BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Rename Month field to Date in MonthlyCount struct for clarity
lotkc9457024d8fc
diff --git a/core/api/contact/v1/contact.go b/core/api/contact/v1/contact.goindex 2b9b4c4e..26f18b4c 100644--- a/core/api/contact/v1/contact.go+++ b/core/api/contact/v1/contact.go@@ -298,7 +298,7 @@ type GetContactsTrendRes struct {}type MonthlyCount struct {- Month string `json:"month" dc:"Month Format: YYYY-MM"`+ Date string `json:"date" dc:"Month Format: YYYY-MM"`Count int `json:"count" dc:"Count"`}diff --git a/core/internal/controller/contact/contact_v1_get_contacts_trend.go b/core/internal/controller/contact/contact_v1_get_contacts_trend.goindex b48c05ad..b03bd073 100644--- a/core/internal/controller/contact/contact_v1_get_contacts_trend.go+++ b/core/internal/controller/contact/contact_v1_get_contacts_trend.go@@ -273,7 +273,7 @@ func (c *ControllerV1) fillMonthlyTrendData(data []struct {}result = append(result, &v1.MonthlyCount{- Month: monthStr,+ Date: monthStr,Count: count,})}