Skip to content

Commit

Permalink
refs #290 fix delay when placing photos/folders
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Feb 29, 2020
1 parent cd19c0e commit cb4882f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/PhotofilesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand All @@ -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++;
}
}
Expand Down

0 comments on commit cb4882f

Please sign in to comment.