Skip to content

Commit

Permalink
preserve original logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Mar 28, 2024
1 parent ce3eb10 commit 6f23909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/controllers/v1/computervision_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ const ComputervisionController = class ComputervisionController {
if ( req.body.delegate_ca || req.query.delegate_ca ) {
formData.append( "aggregated", "true" );
formData.append( "format", "object" );
if ( req.body.taxon_id ) {
formData.append( "taxon_id", req.body.taxon_id );
}
}
if ( !req.body.skip_frequencies && req.body.lat && req.body.lng ) {
formData.append( "lat", req.body.lat );
formData.append( "lng", req.body.lng );
}
if ( req.body.taxon_id ) {
formData.append( "taxon_id", req.body.taxon_id );
}

const requestAbortController = new AbortController( );
const requestTimeout = setTimeout( ( ) => {
Expand Down

0 comments on commit 6f23909

Please sign in to comment.