Order attendance list by in time latest
This commit is contained in:
1 parent
b922a48141
commit
bf43ed8730
1 file changed
+2
@@ -68,6 +68,8 @@ class AttendanceRestEndPoint extends RestEndPoint
|
||||
$query->addColumn('out_time');
|
||||
$query->addColumn('note');
|
||||
|
||||
$query->setOrderBy('in_time desc');
|
||||
|
||||
$limit = self::DEFAULT_LIMIT;
|
||||
if (isset($_GET['limit']) && intval($_GET['limit']) > 0) {
|
||||
$limit = intval($_GET['limit']);
|
||||
|
||||
Reference in new issue
Block a user