Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8109e889 authored by theronakpatel's avatar theronakpatel
Browse files

callForAllUsers replaced

parent f7947e4e
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -120,9 +120,8 @@ class SyncMissingUsersToCommon extends Command {
	private function processAllUsers(string $ipAddress, bool $isDryRun, OutputInterface $output, array &$stats): void {
		$output->writeln('<info>Processing all users from NextCloud</info>');

		$this->userManager->callForSeenUsers(function (IUser $user) use ($ipAddress, $isDryRun, $output, &$stats) {
		$this->userManager->callForAllUsers(function (IUser $user) use ($ipAddress, $isDryRun, $output, &$stats) {
			$username = $user->getUID();
			
			// Check if user is missing from common database
			if ($this->userService->isUsernameTaken($username)) {
				return; // Skip if already exists