diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-24 19:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 19:58:53 +0200 |
commit | 33946655b9bdc80e177baa09ccc53f0d48846c8b (patch) | |
tree | 3505dfdc88a55cff9dd4861453f9edc3e26ddb58 /apps/dav/lib | |
parent | 09a2845c75f12b09f71d1c553f3a25c52f9da454 (diff) | |
parent | 96bab4f96939af9b881ad6e15d085fb446b6c7a4 (diff) | |
download | nextcloud-server-33946655b9bdc80e177baa09ccc53f0d48846c8b.tar.gz nextcloud-server-33946655b9bdc80e177baa09ccc53f0d48846c8b.zip |
Merge pull request #15141 from nextcloud/fix/noid/regenerate-seen-users-only
fix searching all users in repair regenerate birthday cal reparir job
Diffstat (limited to 'apps/dav/lib')
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php index 6f6fa0ba379..4a713daeba0 100644 --- a/apps/dav/lib/CardDAV/SyncService.php +++ b/apps/dav/lib/CardDAV/SyncService.php @@ -319,7 +319,7 @@ class SyncService { 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(); diff --git a/apps/dav/lib/Command/SyncBirthdayCalendar.php b/apps/dav/lib/Command/SyncBirthdayCalendar.php index 88f85a98812..3d1bcab6c31 100644 --- a/apps/dav/lib/Command/SyncBirthdayCalendar.php +++ b/apps/dav/lib/Command/SyncBirthdayCalendar.php @@ -92,7 +92,7 @@ class SyncBirthdayCalendar extends Command { $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(); diff --git a/apps/dav/lib/Controller/BirthdayCalendarController.php b/apps/dav/lib/Controller/BirthdayCalendarController.php index 244111e3aec..4964de0b216 100644 --- a/apps/dav/lib/Controller/BirthdayCalendarController.php +++ b/apps/dav/lib/Controller/BirthdayCalendarController.php @@ -93,7 +93,7 @@ class BirthdayCalendarController extends Controller { $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(), ]); diff --git a/apps/dav/lib/Migration/RegenerateBirthdayCalendars.php b/apps/dav/lib/Migration/RegenerateBirthdayCalendars.php index 2c2b4eb0e9a..263e6d00db4 100644 --- a/apps/dav/lib/Migration/RegenerateBirthdayCalendars.php +++ b/apps/dav/lib/Migration/RegenerateBirthdayCalendars.php @@ -72,7 +72,7 @@ class RegenerateBirthdayCalendars implements IRepairStep { } $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 @@ -82,4 +82,4 @@ class RegenerateBirthdayCalendars implements IRepairStep { // 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 +} |