Skip to content

Commit

Permalink
fix: Fix listing watched when geokrety have no move
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Sep 17, 2023
1 parent 53c34ea commit 0023438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function get() {

protected function getHas(\GeoKrety\Model\Base $object): void {
// Hack to order by rel field, tip from https://github.com/ikkez/f3-cortex/issues/104#issuecomment-657283337
$object->has('last_position', ['id > 0']);
$object->has('last_position', ['1 = 1']);
$object->has('watchers', ['user = ?', $this->user->id]);
}

Expand Down

0 comments on commit 0023438

Please sign in to comment.