Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
fix ds.Metadata.StreamURL [nt]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Nov 10, 2023
1 parent ecc7aac commit 8c9fbef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iop/datastream.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,12 @@ func (ds *Datastream) Rows() chan []any {

func (ds *Datastream) SetMetadata(jsonStr string) {
if jsonStr != "" {
streamValue := ds.Metadata.StreamURL.Value
g.Unmarshal(jsonStr, &ds.Metadata)
ds.Metadata.LoadedAt.Value = cast.ToInt64(ds.Metadata.LoadedAt.Value)
if ds.Metadata.StreamURL.Value == nil {
ds.Metadata.StreamURL.Value = streamValue
}
}
}

Expand Down

0 comments on commit 8c9fbef

Please sign in to comment.