fix: take coordinates in right order

Closes #116
This commit is contained in:
Jovan Krunić
2022-05-16 11:51:10 +00:00
parent 9ce8c58b98
commit bb3be5a816

View File

@@ -212,8 +212,8 @@ export function buildFilter(filter: SCSearchFilter):
// @ts-ignore unfortunately, typescript is stupid and won't allow me to map this to an actual type. // @ts-ignore unfortunately, typescript is stupid and won't allow me to map this to an actual type.
ignore_unmapped: true, ignore_unmapped: true,
[`${filter.arguments.field}.point.coordinates`]: { [`${filter.arguments.field}.point.coordinates`]: {
bottom_right: filter.arguments.shape.coordinates[0], top_left: filter.arguments.shape.coordinates[0],
top_left: filter.arguments.shape.coordinates[1], bottom_right: filter.arguments.shape.coordinates[1],
}, },
}, },
}, },