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
1 changed files with 1 additions and 0 deletions

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))