From c7037d7b38d794ad49c93cbc1dfb8721898bd191 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 25 Mar 2025 16:18:51 +0100 Subject: fix: Move getAppInstalledVersions to AppConfig so that it can be used earlier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Call it from OC_App to make sure there is only one request to DB. Signed-off-by: Côme Chilliet --- lib/private/AppFramework/Services/AppConfig.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/private/AppFramework/Services/AppConfig.php') diff --git a/lib/private/AppFramework/Services/AppConfig.php b/lib/private/AppFramework/Services/AppConfig.php index 423a9eb5814..77c5ea4de0c 100644 --- a/lib/private/AppFramework/Services/AppConfig.php +++ b/lib/private/AppFramework/Services/AppConfig.php @@ -337,4 +337,13 @@ class AppConfig implements IAppConfig { public function deleteUserValue(string $userId, string $key): void { $this->config->deleteUserValue($userId, $this->appName, $key); } + + /** + * Returns the installed versions of all apps + * + * @return array + */ + public function getAppInstalledVersions(): array { + return $this->appConfig->getAppInstalledVersions(); + } } -- cgit v1.2.3