diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-04 14:50:53 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-04 14:50:53 +0100 |
commit | 23351fa0966353c5b47ca7b2cc917555b804ee8d (patch) | |
tree | fa9df4bb455b584baa9303d09427a19d8157343e /tests | |
parent | 20511d31738ac83acde20aeea94bab8bb7e83f43 (diff) |
Remove unused method
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/spreedcheats/appinfo/routes.php | 1 | ||||
-rw-r--r-- | tests/integration/spreedcheats/lib/Controller/ApiController.php | 20 |
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/integration/spreedcheats/appinfo/routes.php b/tests/integration/spreedcheats/appinfo/routes.php index 57798148f..7798d929f 100644 --- a/tests/integration/spreedcheats/appinfo/routes.php +++ b/tests/integration/spreedcheats/appinfo/routes.php @@ -26,6 +26,5 @@ declare(strict_types=1); return [ 'ocs' => [ ['name' => 'Api#resetSpreed', 'url' => '/', 'verb' => 'DELETE'], - ['name' => 'Api#getMessageExpirationJob', 'url' => '/get_message_expiration_job', 'verb' => 'GET'], ], ]; diff --git a/tests/integration/spreedcheats/lib/Controller/ApiController.php b/tests/integration/spreedcheats/lib/Controller/ApiController.php index 34f7b0d7f..a53234bee 100644 --- a/tests/integration/spreedcheats/lib/Controller/ApiController.php +++ b/tests/integration/spreedcheats/lib/Controller/ApiController.php @@ -103,24 +103,4 @@ class ApiController extends OCSController { return new DataResponse(); } - - /** - * @NoCSRFRequired - * - * @return DataResponse - */ - public function getMessageExpirationJob(): DataResponse { - $query = $this->db->getQueryBuilder(); - $query->select('id') - ->from('jobs') - ->where( - $query->expr()->eq('class', $query->createNamedParameter(ExpireChatMessages::class)) - ); - $result = $query->executeQuery(); - $job = $result->fetchOne(); - if ($job) { - return new DataResponse(['id' => (int) $job]); - } - return new DataResponse([], Http::STATUS_NOT_FOUND); - } } |