Skip to content

Commit daf5f16

Browse files
authored
Forgot to add $pathToScan argument to anonymous function.
1 parent 97b1117 commit daf5f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Command/RescanPhotos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8585
echo "Extracting coordinates from photo is performed in a BackgroundJob \n";
8686
}
8787
if ($userId === null) {
88-
$this->userManager->callForSeenUsers(function (IUser $user) use ($inBackground) {
88+
$this->userManager->callForSeenUsers(function (IUser $user, string $pathToScan) use ($inBackground) {
8989
$this->rescanUserPhotos($user->getUID(), $inBackground, $pathToScan);
9090
});
9191
} else {

0 commit comments

Comments
 (0)