diff --git a/lib/Service/ExAppService.php b/lib/Service/ExAppService.php index 8a5a37cb..31c2df7f 100644 --- a/lib/Service/ExAppService.php +++ b/lib/Service/ExAppService.php @@ -413,6 +413,9 @@ private function unregisterExAppWebhooks(string $appId): void { } try { $webhookListenerMapper = \OCP\Server::get(\OCA\WebhookListeners\Db\WebhookListenerMapper::class); + if (!method_exists($webhookListenerMapper, 'deleteByAppId')) { + return; + } $webhookListenerMapper->deleteByAppId($appId); } catch (ContainerExceptionInterface | NotFoundExceptionInterface $e) { } catch (Exception $e) {