Skip to content

Commit 29a1dcc

Browse files
committed
removed TimestampBehavior
1 parent c79a035 commit 29a1dcc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Listener/QueueMonitorListener.php

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ private function storeEvent(
159159
/** @var \CakeDC\QueueMonitor\Model\Entity\Log $queueMonitoringLog */
160160
$queueMonitoringLog = $this->QueueMonitoringLogs->newEmptyEntity();
161161

162+
$queueMonitoringLog->created = DateTime::now('UTC');
162163
$queueMonitoringLog->message_id = (string)$queueMessage->getMessageId();
163164
$queueMonitoringLog->message_timestamp = DateTime::createFromTimestamp(
164165
(int)$queueMessage->getTimestamp(),

src/Model/Table/LogsTable.php

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
* @method \CakeDC\QueueMonitor\Model\Entity\Log[] patchEntities(iterable $entities, array $data, array $options = [])
3030
* @method \CakeDC\QueueMonitor\Model\Entity\Log|false save(\Cake\Datasource\EntityInterface $entity, $options = [])
3131
* @method \CakeDC\QueueMonitor\Model\Entity\Log saveOrFail(\Cake\Datasource\EntityInterface $entity, $options = [])
32-
* @mixin \Cake\ORM\Behavior\TimestampBehavior
3332
*/
3433
class LogsTable extends Table
3534
{
@@ -46,7 +45,6 @@ public function initialize(array $config): void
4645
$this->setTable('queue_monitoring_logs');
4746
$this->setDisplayField('event');
4847
$this->setPrimaryKey('id');
49-
$this->addBehavior('Timestamp');
5048
}
5149

5250
/**

0 commit comments

Comments
 (0)