瀏覽代碼

Hide archived locations when getting nearby locations for a user

Alan Lam 3 年之前
父節點
當前提交
9a02eccc09
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  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
 		]);