Skip to content

Commit b775894

Browse files
author
mtierltd
committed
generalize query
1 parent e1a89ba commit b775894

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Db/WorkIntervalMapper.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ public function findLatestInterval($user, $from, $to, $limit = 5000, $offset = 0
7575

7676
}
7777

78-
if ($this->dbengine == 'MYSQL'){
79-
$sql = 'SELECT * FROM `*PREFIX*timetracker_work_interval` where '.implode(" and ",$filters).' order by start desc';
80-
return $this->findEntities($sql, $params, $limit, $offset);
81-
}
78+
$sql = 'SELECT * FROM `*PREFIX*timetracker_work_interval` where '.implode(" and ",$filters).' order by start desc';
79+
return $this->findEntities($sql, $params, $limit, $offset);
8280
}
8381

8482
public function findLatestDays($user, $limitDays = 10, $startDay = 0, $limit = 5000, $offset = 0){

0 commit comments

Comments
 (0)