fix: remove user location for privacy
This commit is contained in:
@@ -41,7 +41,6 @@ class SignalController
|
||||
$signal = $this->submissionService->submit($clientKey, $payload);
|
||||
|
||||
$signalLocation = $signal->getSignalLocation();
|
||||
$userLocation = $signal->getUserLocation();
|
||||
|
||||
return new JsonResponse([
|
||||
'status' => 'stored',
|
||||
@@ -52,10 +51,6 @@ class SignalController
|
||||
'lat' => $signalLocation->getLat(),
|
||||
'lng' => $signalLocation->getLng(),
|
||||
],
|
||||
'userLocation' => [
|
||||
'lat' => $userLocation->getLat(),
|
||||
'lng' => $userLocation->getLng(),
|
||||
],
|
||||
'createdAt' => $signal->getCreatedAt()->format(DATE_ATOM),
|
||||
'userKey' => $signal->getUserKey(),
|
||||
],
|
||||
|
||||
@@ -38,7 +38,6 @@ class SignalSnapshotBuilder
|
||||
|
||||
foreach ($signals as $signal) {
|
||||
$signalLocation = $signal->getSignalLocation();
|
||||
$userLocation = $signal->getUserLocation();
|
||||
|
||||
$point = [
|
||||
'id' => (int) $signal->getId(),
|
||||
@@ -46,10 +45,6 @@ class SignalSnapshotBuilder
|
||||
'lat' => $signalLocation->getLat(),
|
||||
'lng' => $signalLocation->getLng(),
|
||||
],
|
||||
'userLocation' => [
|
||||
'lat' => $userLocation->getLat(),
|
||||
'lng' => $userLocation->getLng(),
|
||||
],
|
||||
'createdAt' => $signal->getCreatedAt()->format(DATE_ATOM),
|
||||
'userKey' => $signal->getUserKey(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user