Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed May 1, 2023
1 parent 7bc7943 commit 396b785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AS
count(tc.id) AS count
FROM
(
treetracker.capture tc
JOIN treetracker.tree tt
capture tc
JOIN tree tt
ON (
(
st_dwithin(
Expand Down
2 changes: 1 addition & 1 deletion server/repositories/CaptureRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CaptureRepository extends BaseRepository {
filterObject.matchting_tree_time_range
) {
const knex = this._session.getDB();
result.where(`id`, 'in', knex.raw(`capture_tree_match`));
result.where(`id`, 'in', knex.raw(`SELECT id FROM capture_tree_match`));
delete filterObject.matchting_tree_distance;
delete filterObject.matchting_tree_time_range;
}
Expand Down

0 comments on commit 396b785

Please sign in to comment.