diff --git a/crm/repository/record.go b/crm/repository/record.go index 78fd9d078..8cb8692d2 100644 --- a/crm/repository/record.go +++ b/crm/repository/record.go @@ -39,7 +39,7 @@ type ( FindResponse struct { Meta FindResponseMeta `json:"meta"` - Records []*types.Record `json:"contents"` + Records []*types.Record `json:"records"` } record struct { diff --git a/crm/types/types.go b/crm/types/types.go index 83e3fd7c9..390e0825d 100644 --- a/crm/types/types.go +++ b/crm/types/types.go @@ -14,7 +14,7 @@ import ( type ( // Record is a stored row in the `record` table Record struct { - ID uint64 `json:"contentID,string" db:"id"` + ID uint64 `json:"recordID,string" db:"id"` ModuleID uint64 `json:"moduleID,string" db:"module_id"` User *systemTypes.User `json:"user,omitempty" db:"-"`