Skip to content

Commit 583397f

Browse files
committed
fix(api): restore contact property serialization
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 80fa4141-33c6-474f-939a-f1a637639f96
1 parent 1a85d91 commit 583397f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎api/pkg/entities/contact.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const EntityNameContact = "Contact"
1616
// ContactProperties is a free-form key/value map persisted as a jsonb column.
1717
type ContactProperties map[string]string
1818

19+
var _ driver.Valuer = ContactProperties{}
20+
1921
// Value implements driver.Valuer, serializing the map to JSON bytes.
20-
func (p *ContactProperties) Value() (driver.Value, error) {
22+
func (p ContactProperties) Value() (driver.Value, error) {
2123
if p == nil {
2224
return []byte("{}"), nil
2325
}

0 commit comments

Comments
 (0)