http response returns the timestamp of the change

This commit is contained in:
Simon Gschnell
2023-12-29 12:01:25 +01:00
parent a27b80c394
commit bb0656c480
5 changed files with 58 additions and 34 deletions
@@ -19,20 +19,10 @@ class Profil_change_model extends DB_Model
/**
* getLastStatuses
*/
public function getData($uid){
$res = $this->load($uid);
$res = hasData($res) ? getData($res)[0] : null;
return $res;
}
public function insertData($data){
$res = $this->insert($data);
//$res = hasData($res) ? getData($res)[0] : null;
return $res;
}
public function getTimestamp($uid){
$this->addSelect(['change_timestamp']);
$res = $this->load([$uid]);
return hasData($res) ? getData($res)[0] : null;
}
}