Skip to content

Commit

Permalink
Merge pull request #1 from IlyaChuvaev/master
Browse files Browse the repository at this point in the history
reference and override set default idle value by create
  • Loading branch information
nekufa authored Dec 26, 2024
2 parents c6ec472 + c424fc7 commit 4a88909
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Temporal.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public function reference(array $reference): Reference
$reference['entity'] = $this->getEntityId($entityName);
$reference['actor'] = $this->actor;
$reference['timestamp'] = Carbon::now()->timestamp;
$reference['idle'] = 0;

$reference = $this->mapper->create(Reference::class, $reference);

Expand Down Expand Up @@ -325,6 +326,7 @@ public function override(array $override): void
$override['entity'] = $this->getEntityId($entityName);
$override['actor'] = $this->actor;
$override['timestamp'] = Carbon::now()->timestamp;
$override['idle'] = 0;

$this->mapper->create(Override::class, $override);
$this->aggregator->updateOverrideAggregation($override['entity'], $override['id']);
Expand Down

0 comments on commit 4a88909

Please sign in to comment.