parent
906f6594bb
commit
9d9ef6654e
|
@ -50,7 +50,8 @@ trait TimelineWritePlaces
|
||||||
$rows = \OC::$server->get(\OCA\Memories\Service\Places::class)->queryPoint($lat, $lon);
|
$rows = \OC::$server->get(\OCA\Memories\Service\Places::class)->queryPoint($lat, $lon);
|
||||||
|
|
||||||
// Get last ID, i.e. the ID with highest admin_level but <= 8
|
// Get last ID, i.e. the ID with highest admin_level but <= 8
|
||||||
$markRow = array_pop(array_filter($rows, fn ($row) => $row['admin_level'] <= 8));
|
$crows = array_filter($rows, fn ($row) => $row['admin_level'] <= 8);
|
||||||
|
$markRow = array_pop($crows);
|
||||||
|
|
||||||
// Insert records in transaction
|
// Insert records in transaction
|
||||||
$this->connection->beginTransaction();
|
$this->connection->beginTransaction();
|
||||||
|
|
Loading…
Reference in New Issue