Pass export filters into CSV stream helpers

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Cursor Agent
2026-07-29 20:33:57 +00:00
parent e9567c8e65
commit bff06a3c6d
2 changed files with 19 additions and 17 deletions

View File

@@ -232,23 +232,31 @@ func (s *LogExportService) streamCSV(
switch exportJob.Type {
case coredata.ExportJobTypeAuditLog:
filter := coredata.NewAuditLogEntryFilter().
WithCreatedAtGte(args.FromTime).
WithCreatedAtLt(args.ToTime)
return s.streamAuditLogCSV(
ctx,
conn,
scope,
exportJob.OrganizationID,
organization.Name,
args,
filter,
w,
)
case coredata.ExportJobTypeSCIMEvent:
filter := coredata.NewSCIMEventFilter().
WithCreatedAtGte(args.FromTime).
WithCreatedAtLt(args.ToTime)
return s.streamSCIMEventCSV(
ctx,
conn,
scope,
exportJob.OrganizationID,
organization.Name,
args,
filter,
w,
)
default: