Skip to content

Commit

Permalink
url update
Browse files Browse the repository at this point in the history
  • Loading branch information
DovMa committed Feb 7, 2024
1 parent 37cea69 commit dbdd013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/locations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export default class LocationsService extends moleculer.Service {
const { geom, search, withGeom, ...options } = ctx.params;
let url = '';
if (geom) {
url = `${process.env.INTERNAL_API}/uetk/search?query[geom]=${geom}${serializeQuery(
url = `${process.env.INTERNAL_API}/uetk/objects?query[geom]=${geom}${serializeQuery(
options
)}`;
} else if (search) {
url = `${process.env.INTERNAL_API}/uetk/search?search=${search}&searchFields[]=name&searchFields[]=cadastral_id${serializeQuery(
url = `${process.env.INTERNAL_API}/uetk/objects?search=${search}&searchFields[]=name&searchFields[]=cadastral_id${serializeQuery(
options
)}`;
}
Expand Down

0 comments on commit dbdd013

Please sign in to comment.