Skip to content

Commit

Permalink
Merge pull request #1778 from nextcloud/backport/1693/stable26
Browse files Browse the repository at this point in the history
[stable26] Do not silence error when setting a place
  • Loading branch information
artonge authored May 9, 2023
2 parents 8db5492 + 1d268f7 commit 6c66f55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/DB/Place/PlaceMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public function setPlaceForFile(string $place, int $fileId): void {
} catch (\Exception $ex) {
if ($ex->getPrevious() instanceof UniqueConstraintViolationException) {
$this->updatePlaceForFile($place, $fileId);
} else {
throw $ex;
}
}
}
Expand Down

0 comments on commit 6c66f55

Please sign in to comment.