Add type to communications response

This commit is contained in:
Eli Ribble 2026-03-07 01:37:48 +00:00
parent cd4b272643
commit f1f9c8f902
No known key found for this signature in database

View file

@ -114,6 +114,8 @@ func listCommunication(ctx context.Context, r *http.Request, org *models.Organiz
name = *report.ReporterName
}
comms[i] = communication{
Created: report.Created,
ID: report.PublicID,
PublicReport: publicReport{
Address: Address{
Country: report.AddressCountry,
@ -134,8 +136,7 @@ func listCommunication(ctx context.Context, r *http.Request, org *models.Organiz
HasPhone: report.ReporterPhone != nil,
},
},
Created: report.Created,
ID: report.PublicID,
Type: "nuisance",
}
}
return &contentListCommunication{