Set the create_datetime value when creating a new consent

This commit is contained in:
Alex Tselegidis 2022-03-25 12:43:23 +01:00
parent 62d3a00fd9
commit afe21e3960

View file

@ -82,6 +82,7 @@ class Consents_model extends EA_Model {
*/
protected function insert(array $consent): int
{
$consent['create_datetime'] = date('Y-m-d H:i:s');
$consent['update_datetime'] = date('Y-m-d H:i:s');
if ( ! $this->db->insert('consents', $consent))