hits for postgres

This commit is contained in:
Nicola Galgano 2021-06-27 09:28:50 +02:00 committed by GitHub
parent b9330b42a9
commit 9b9e42ff5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,11 @@ class WeblinkTable extends Table implements VersionableTableInterface, TaggableT
{
$this->created_by = $user->id;
}
if (empty($this->hits))
{
$this->hits = 0;
}
}
// Set publish_up to null date if not set