From 8dad25913262c9b7bed68514eaf02d2d8d428af0 Mon Sep 17 00:00:00 2001
From: Dmitry Dmitriev
Date: Thu, 3 Dec 2020 10:11:12 +0300
Subject: [PATCH] Omit empty value
---
models/leads.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/models/leads.go b/models/leads.go
index 2c9597a..02a64d7 100644
--- a/models/leads.go
+++ b/models/leads.go
@@ -82,6 +82,6 @@ type Value struct {
type CustomFieldsValue struct {
FieldID int `json:"field_id"`
- FieldCode string `json:"field_code"`
+ FieldCode string `json:"field_code,omitempty"`
Values []*Value `json:"values"`
}