diff --git a/platform/communication.go b/platform/communication.go index ebe6e4dd..629891fa 100644 --- a/platform/communication.go +++ b/platform/communication.go @@ -63,10 +63,10 @@ func CommunicationRelatedRecords(ctx context.Context, user User, comm *modelpubl if err != nil { return result, fmt.Errorf("email log from ID: %w", err) } - for _, log := range email_logs { + for _, l := range email_logs { result = append(result, RelatedRecord{ - Created: log.Created, - ID: strconv.Itoa(int(log.ID)), + Created: l.Created, + ID: strconv.Itoa(int(l.ID)), Type: RelatedRecordTypeEmail, }) } @@ -79,10 +79,10 @@ func CommunicationRelatedRecords(ctx context.Context, user User, comm *modelpubl if err != nil { return result, fmt.Errorf("text log from ID: %w", err) } - for _, log := range text_logs { + for _, l := range text_logs { result = append(result, RelatedRecord{ - Created: log.Created, - ID: strconv.Itoa(int(log.ID)), + Created: l.Created, + ID: strconv.Itoa(int(l.ID)), Type: RelatedRecordTypeText, }) } diff --git a/resource/communication.go b/resource/communication.go index 73ec7b14..015aa9d6 100644 --- a/resource/communication.go +++ b/resource/communication.go @@ -11,7 +11,7 @@ import ( modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model" nhttp "github.com/Gleipnir-Technology/nidus-sync/http" "github.com/Gleipnir-Technology/nidus-sync/platform" - "github.com/rs/zerolog/log" + //"github.com/rs/zerolog/log" ) type communicationR struct { @@ -195,7 +195,6 @@ func (res *communicationR) hydrateCommunication(comm modelpublic.Communication, Type: r_type, URI: uri, } - log.Debug().Str("created", rr.Created.String()).Str("id", rr.ID).Str("uri", uri).Msg("related record") } response, err := responseURI(*res.router, comm) if err != nil {