diff --git a/appinfo/application.php b/appinfo/application.php
index d49953a..bee4292 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -40,11 +40,11 @@ class Application extends App {
* Database Layer
*/
$container->registerService('CityMapper', function(IContainer $c) {
- return new CityMapper($c->query('ServerContainer')->getDb());
+ return new CityMapper($c->query('ServerContainer')->getDatabaseConnection());
});
$container->registerService('SettingsMapper', function(IContainer $c) {
- return new SettingsMapper($c->query('ServerContainer')->getDb());
+ return new SettingsMapper($c->query('ServerContainer')->getDatabaseConnection());
});
/**
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 1f113fb..a4e0632 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -4,7 +4,7 @@
weather
Weather
Watch the weather directly on your Nextcloud.
- 1.4.1
+ 1.4.2
AGPL
Loic Blot
tools
diff --git a/db/citymapper.php b/db/citymapper.php
index 1cb8bd1..9bef9c5 100644
--- a/db/citymapper.php
+++ b/db/citymapper.php
@@ -11,12 +11,12 @@
namespace OCA\Weather\Db;
-use \OCP\IDb;
+use \OCP\IDBConnection;
use \OCP\AppFramework\Db\Mapper;
class CityMapper extends Mapper {
- public function __construct (IDb $db) {
+ public function __construct (IDBConnection $db) {
parent::__construct($db, 'weather_city');
}
diff --git a/db/settingsmapper.php b/db/settingsmapper.php
index 8054c89..0debdd7 100644
--- a/db/settingsmapper.php
+++ b/db/settingsmapper.php
@@ -11,12 +11,12 @@
namespace OCA\Weather\Db;
-use \OCP\IDb;
+use \OCP\IDBConnection;
use \OCP\AppFramework\Db\Mapper;
class SettingsMapper extends Mapper {
- public function __construct (IDb $db) {
+ public function __construct (IDBConnection $db) {
parent::__construct($db, 'weather_city');
}