aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-03-10 20:30:29 +0100
committerJoas Schilling <coding@schilljs.com>2021-03-10 20:30:29 +0100
commit61ed57b757201541b2038ccab10b092a77c4fb64 (patch)
treee9b00d759ce7ee00974bd91da6674683b30d83cb /apps
parent45dbc471d9964fcdb13c350bedc912d282d262f9 (diff)
downloadnextcloud-server-61ed57b757201541b2038ccab10b092a77c4fb64.tar.gz
nextcloud-server-61ed57b757201541b2038ccab10b092a77c4fb64.zip
Rename some parameters and methods to make the API more clear
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
-rw-r--r--apps/provisioning_api/lib/Listener/UserDeletedListener.php2
-rw-r--r--apps/settings/lib/Controller/UsersController.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index d1dba3ea6ee..579f9ae522a 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -692,7 +692,7 @@ class UsersController extends AUserData {
$this->accountManager->updateUser($targetUser, $userAccount, true);
if ($key === IAccountManager::PROPERTY_PHONE) {
- $this->knownUserService->deleteKnownUser($targetUser->getUID());
+ $this->knownUserService->deleteByContactUserId($targetUser->getUID());
}
} catch (\InvalidArgumentException $e) {
throw new OCSException('Invalid ' . $e->getMessage(), 102);
diff --git a/apps/provisioning_api/lib/Listener/UserDeletedListener.php b/apps/provisioning_api/lib/Listener/UserDeletedListener.php
index f4fdb973080..1e021177bb4 100644
--- a/apps/provisioning_api/lib/Listener/UserDeletedListener.php
+++ b/apps/provisioning_api/lib/Listener/UserDeletedListener.php
@@ -49,6 +49,6 @@ class UserDeletedListener implements IEventListener {
$this->service->deleteKnownTo($user->getUID());
// Delete all entries that other users know this user
- $this->service->deleteKnownUser($user->getUID());
+ $this->service->deleteByContactUserId($user->getUID());
}
}
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php
index c4893b778fa..46de0b4cd96 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -413,7 +413,7 @@ class UsersController extends Controller {
try {
$data = $this->saveUserSettings($user, $data);
if ($beforeData[IAccountManager::PROPERTY_PHONE]['value'] !== $data[IAccountManager::PROPERTY_PHONE]['value']) {
- $this->knownUserService->deleteKnownUser($user->getUID());
+ $this->knownUserService->deleteByContactUserId($user->getUID());
}
return new DataResponse(
[