mirror of
https://github.com/nextcloud/server.git
synced 2025-04-28 11:03:00 +00:00
fix(lookup-server): Only flag new users for lookup update / delete
If the flag was already set then we do not need to overwrite it. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
21c09e4816
commit
712fe45f46
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
|
|||
*/
|
||||
public function run($argument): void {
|
||||
$this->userManager->callForSeenUsers(function (IUser $user) {
|
||||
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
|
||||
// If the user data was not updated yet (check if LUS is enabled and if then update on LUS or delete on LUS)
|
||||
// then we need to flag the user data to be checked
|
||||
if ($this->config->getUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '') === '') {
|
||||
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue