diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-10 17:28:05 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-15 16:06:33 +0100 |
commit | deec4f31dbe02008207f9b8c21f0302af919c652 (patch) | |
tree | feb86c775616aafb690bfd2d2b77d0d299f33c54 /apps/user_status/lib/Connector | |
parent | 194338cca3823ec4e1f1f473e278bdb26fb229fa (diff) | |
download | nextcloud-server-deec4f31dbe02008207f9b8c21f0302af919c652.tar.gz nextcloud-server-deec4f31dbe02008207f9b8c21f0302af919c652.zip |
Allow to revert the user status of multiple users in 3 queries instead of 3*n
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status/lib/Connector')
-rw-r--r-- | apps/user_status/lib/Connector/UserStatusProvider.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_status/lib/Connector/UserStatusProvider.php b/apps/user_status/lib/Connector/UserStatusProvider.php index f3f4c5f710e..cec9406d28b 100644 --- a/apps/user_status/lib/Connector/UserStatusProvider.php +++ b/apps/user_status/lib/Connector/UserStatusProvider.php @@ -70,4 +70,8 @@ class UserStatusProvider implements IProvider, ISettableProvider { public function revertUserStatus(string $userId, string $messageId, string $status): void { $this->service->revertUserStatus($userId, $messageId, $status); } + + public function revertMultipleUserStatus(array $userIds, string $messageId, string $status): void { + $this->service->revertMultipleUserStatus($userIds, $messageId, $status); + } } |