This commit is contained in:
Daniel Ponte 2025-02-04 08:51:29 -05:00
parent 632607cd0b
commit e073f40449
4 changed files with 8 additions and 2 deletions

View file

@ -80,6 +80,7 @@ type Call struct {
TalkgroupGroup *string `json:"talkgroupGroup,omitempty" relayOut:"talkgroupGroup,omitempty"`
TalkgroupLabel *string `json:"talkgroupLabel,omitempty" relayOut:"talkgroupLabel,omitempty"`
TGAlphaTag *string `json:"tg_name,omitempty" relayOut:"talkgroupTag,omitempty"`
Transcript *string `json:"transcript" relayOut:"transcript,omitempty"`
shouldStore bool `json:"-"`
}

View file

@ -179,6 +179,7 @@ func (s *store) Call(ctx context.Context, id uuid.UUID) (*calls.Call, error) {
TalkgroupLabel: c.TGLabel,
TalkgroupGroup: c.TGGroup,
TGAlphaTag: c.TGAlphaTag,
Transcript: c.Transcript,
}, nil
}

View file

@ -181,7 +181,8 @@ SELECT
tg_label,
tg_alpha_tag,
tg_group,
source
source,
transcript
FROM calls
WHERE id = $1
`
@ -203,6 +204,7 @@ type GetCallRow struct {
TGAlphaTag *string `json:"tg_alpha_tag"`
TGGroup *string `json:"tg_group"`
Source int `json:"source"`
Transcript *string `json:"transcript"`
}
func (q *Queries) GetCall(ctx context.Context, id uuid.UUID) (GetCallRow, error) {
@ -225,6 +227,7 @@ func (q *Queries) GetCall(ctx context.Context, id uuid.UUID) (GetCallRow, error)
&i.TGAlphaTag,
&i.TGGroup,
&i.Source,
&i.Transcript,
)
return i, err
}

View file

@ -180,6 +180,7 @@ SELECT
tg_label,
tg_alpha_tag,
tg_group,
source
source,
transcript
FROM calls
WHERE id = @id;