Skip to content

Commit

Permalink
fix: Correct issue with start & end times
Browse files Browse the repository at this point in the history
  • Loading branch information
jarjee committed Mar 15, 2024
1 parent 176ae42 commit 5a7c8c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/cli/atlas/streams/instance/logs.go
Expand Up @@ -63,8 +63,14 @@ func (opts *DownloadOpts) Run() error {
params := atlasv2.DownloadStreamTenantAuditLogsApiParams{
GroupId: opts.ProjectID,
TenantName: opts.tenantName,
StartDate: &opts.start,
EndDate: &opts.end,
}

if opts.start != 0 {
params.StartDate = &opts.start
}

if opts.end != 0 {
params.EndDate = &opts.end
}

f, err := opts.store.DownloadAuditLog(&params)
Expand Down

0 comments on commit 5a7c8c3

Please sign in to comment.