Skip to content

Commit

Permalink
fix invalid overpass variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadjaur committed Apr 25, 2024
1 parent 8380d54 commit a1d84bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/osm/getTrailsOSMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { updateDatabaseWithGeoJSONDataFromOverpass } from '../../controllers/get
export async function getTrailsOsmService(osmUri, lat, lon, radius) {
// set default values for lat, lon, and radius;

if (!overpassUrl) {
if (!osmUri) {
throw new Error('OSM_URI is not defined in the environment variables'); // But it is defined so this is okay
}

Expand Down

0 comments on commit a1d84bf

Please sign in to comment.