Explorar o código

Hide archived locations when getting nearby locations for a user

Alan Lam %!s(int64=3) %!d(string=hai) anos
pai
achega
9a02eccc09
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      controllers/user_ajax.php

+ 1 - 0
controllers/user_ajax.php

@@ -55,6 +55,7 @@ switch($action) {
 		$locations = Location::query([
 			"latitude" => (new Constraint("BETWEEN"))->setValues($min_lat, $max_lat),
 			"longitude" => (new Constraint("BETWEEN"))->setValues($min_lng, $max_lng),
+			"archived" => 0,
 			"closed" => 0
 		]);