public function syncInstance(\Closure $progressCallback = null) {
$systemAddressBook = $this->getLocalSystemAddressBook();
- $this->userManager->callForAllUsers(function($user) use ($systemAddressBook, $progressCallback) {
+ $this->userManager->callForSeenUsers(function($user) use ($systemAddressBook, $progressCallback) {
$this->updateUser($user);
if (!is_null($progressCallback)) {
$progressCallback();
$output->writeln("Start birthday calendar sync for all users ...");
$p = new ProgressBar($output);
$p->start();
- $this->userManager->callForAllUsers(function($user) use ($p) {
+ $this->userManager->callForSeenUsers(function($user) use ($p) {
$p->advance();
$userId = $user->getUID();
$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'yes');
// add background job for each user
- $this->userManager->callForAllUsers(function(IUser $user) {
+ $this->userManager->callForSeenUsers(function(IUser $user) {
$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
'userId' => $user->getUID(),
]);
}
$output->info('Adding background jobs to regenerate birthday calendar');
- $this->userManager->callForAllUsers(function(IUser $user) {
+ $this->userManager->callForSeenUsers(function(IUser $user) {
$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
'userId' => $user->getUID(),
'purgeBeforeGenerating' => true
// if all were done, no need to redo the repair during next upgrade
$this->config->setAppValue('dav', 'regeneratedBirthdayCalendarsForYearFix', 'yes');
}
-}
\ No newline at end of file
+}