Skip to content

Commit

Permalink
Fix: Comment not updated when using rateOnce (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
al3nzy6 authored Jan 10, 2022
1 parent cf53a94 commit 3da4ed0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Rateable.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function rateOnce($value, $comment = null)

if ($rating) {
$rating->rating = $value;
$rating->comment = $comment;
$rating->save();
} else {
$this->rate($value, $comment);
Expand Down

0 comments on commit 3da4ed0

Please sign in to comment.