summaryrefslogtreecommitdiffstats
path: root/db/itemmapper.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 18:34:17 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 18:34:17 +0200
commit9b1fe46fe995bc103d3c5cfa9a552d050ff0ead8 (patch)
tree7b86abb65272df89f61e849a08edef5326207b8a /db/itemmapper.php
parentb88d42074dcd0842d0db3ca8ed24b0b9ccb78a7a (diff)
Add timestamps for all entities in milisecond unix time format
Diffstat (limited to 'db/itemmapper.php')
-rw-r--r--db/itemmapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 220b4f153..091022c6c 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -14,16 +14,16 @@
namespace OCA\News\Db;
use Exception;
+use OCA\News\Utility\Time;
use OCP\IDBConnection;
class ItemMapper extends NewsMapper {
- public function __construct(IDBConnection $db) {
- parent::__construct($db, 'news_items', Item::class);
+ public function __construct(IDBConnection $db, Time $time) {
+ parent::__construct($db, 'news_items', Item::class, $time);
}
-
private function makeSelectQuery($prependTo = '', $oldestFirst = false,
$distinctFingerprint = false) {
if ($oldestFirst) {