From cb4882f713d078a76e5a34d9e8c1513dc39d4693 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Sat, 29 Feb 2020 20:18:16 +0100 Subject: [PATCH] refs #290 fix delay when placing photos/folders Signed-off-by: Julien Veyssier --- lib/Service/PhotofilesService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/PhotofilesService.php b/lib/Service/PhotofilesService.php index a98324ac2..041166856 100644 --- a/lib/Service/PhotofilesService.php +++ b/lib/Service/PhotofilesService.php @@ -207,7 +207,7 @@ private function setDirectoriesCoords($userId, $paths, $lats, $lngs) { foreach($nodes as $node) { if ($this->isPhoto($node) and $node->isUpdateable()) { $this->setExifCoords($node, $lat, $lng); - $this->photoMapper->updateByFileId($node->getId(), $lat, $lng); + $this->updateByFileNow($node); $nbDone++; } } @@ -229,7 +229,7 @@ private function setFilesCoords($userId, $paths, $lats, $lngs) { $lat = (count($lats) > $i) ? $lats[$i] : $lats[0]; $lng = (count($lngs) > $i) ? $lngs[$i] : $lngs[0]; $this->setExifCoords($file, $lat, $lng); - $this->photoMapper->updateByFileId($file->getId(), $lat, $lng); + $this->updateByFileNow($file); $nbDone++; } }