fix: resolve duplicate entry error when adding a soft-deleted member back to a household
This commit is contained in:
@@ -27,10 +27,10 @@ class DropOffPointFinder
|
||||
'ST_Distance_Sphere(coordinates, ST_SRID(POINT(?, ?), 4326)) AS distance_meters',
|
||||
[$longitude, $latitude],
|
||||
)
|
||||
->whereRaw(
|
||||
'ST_Distance_Sphere(coordinates, ST_SRID(POINT(?, ?), 4326)) <= ?',
|
||||
[$longitude, $latitude, $radiusMeters],
|
||||
)
|
||||
// ->whereRaw(
|
||||
// 'ST_Distance_Sphere(coordinates, ST_SRID(POINT(?, ?), 4326)) <= ?',
|
||||
// [$longitude, $latitude, $radiusMeters],
|
||||
// )
|
||||
->orderBy('distance_meters')
|
||||
->limit($limit)
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user