Skip to content

Commit

Permalink
Consider only unfinished records as active
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed Jun 26, 2024
1 parent 32d3d6c commit 57fef93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chronicler.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function isRecorded(Record $record, ?string $period = null): bool
{
$qb = $this->entityManager->createQueryBuilder()
->select('e')->from($this->entityName, 'e')
->where('e.hash = :hash');
->where('e.hash = :hash AND e.isFinished = false');

if (isset($period)) {
$dateStart = new DateTime('midnight next day');
Expand Down

0 comments on commit 57fef93

Please sign in to comment.