Fix populating water report from ID, make ContactSimple
ContactSimple is the replacement for ContactReporter, which was the simplified form of a contact from a report. I made the name more generic and use it in the general report structures for consistency.
This commit is contained in:
parent
75d0283453
commit
5e103f46a0
14 changed files with 103 additions and 108 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"source.gleipnir.technology/Gleipnir/nidus-sync/config"
|
||||
)
|
||||
|
||||
|
|
@ -104,6 +105,7 @@ const (
|
|||
)
|
||||
|
||||
func Created(t ResourceType, organization_id int32, uri_id string) {
|
||||
log.Debug().Int("resource type", int(t)).Int32("org", organization_id).Str("uri", uri_id).Msg("created event")
|
||||
go Send(Envelope{
|
||||
Event: Event{
|
||||
Resource: resourceString(t),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue