Fix dodgy creation of compliance report in database

This commit is contained in:
Eli Ribble 2026-04-10 15:38:05 +00:00
parent c48aebcb0b
commit b23fc6edc5
No known key found for this signature in database
4 changed files with 20 additions and 16 deletions

View file

@ -152,7 +152,7 @@ func reportCreate(ctx context.Context, setter_report models.PublicreportReportSe
return nil, fmt.Errorf("Failed to save image uploads: %w", err)
}
var organization_id *int32
organization_id, err = MatchDistrict(ctx, location.Longitude, location.Latitude, images)
organization_id, err = matchDistrict(ctx, location, images)
if err != nil {
log.Warn().Err(err).Msg("Failed to match district")
}