Fully populate report after PUT

Otherwise we miss stuff like the number of images
This commit is contained in:
Eli Ribble 2026-04-14 02:38:36 +00:00
parent 2408bcbeff
commit 5448702a7d
No known key found for this signature in database

View file

@ -178,5 +178,10 @@ func (res *complianceR) Update(ctx context.Context, r *http.Request, prf publicr
if err != nil {
return nil, nhttp.NewError("platform update report compliance: %w", err)
}
// Return a fully-fleshed-out report object, even though it's a bit more expensive
report, err = platform.PublicreportByIDCompliance(ctx, public_id)
if err != nil {
return nil, nhttp.NewError("get report after update: %w", err)
}
return report, nil
}