Skip to content

Commit

Permalink
Do not let the endOrDelete method drop back into the observers as thi…
Browse files Browse the repository at this point in the history
…s could get us caught in a loop.
  • Loading branch information
joshforbes committed Jan 5, 2017
1 parent 533de01 commit 6dea8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Temporal.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected function endOrDelete()
}

if ($this->isValid()) {
$this->update([
$this->where($this->primaryKey, $this->{$this->primaryKey})->update([
'valid_end' => Carbon::now()
]);
}
Expand Down

0 comments on commit 6dea8df

Please sign in to comment.