Skip to content

Commit

Permalink
NEOS-1604: fixes dest opt batch dto to handle fallback (#2918)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Nov 8, 2024
1 parent a35b539 commit c78b5df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/sql/postgresql/models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,9 @@ func (a *AwsS3DestinationOptions) FromDto(dto *mgmtv1alpha1.AwsS3DestinationConn
}

func (b *BatchConfig) ToDto() *mgmtv1alpha1.BatchConfig {
if b.Count == nil && b.Period == nil {
return nil
}
return &mgmtv1alpha1.BatchConfig{
Count: b.Count,
Period: b.Period,
Expand Down

0 comments on commit c78b5df

Please sign in to comment.