Browse Source

Point::getUnifiedPointsOfCategory() query fix

Vijayakrishnan 3 years ago
parent
commit
ac4e47c2b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Point.php

+ 1 - 1
app/Models/Point.php

@@ -198,7 +198,7 @@ class Point extends Model
                     })
                     ->orWhere('last_child_review_point_scoped_note_id', $_note->id) // review added during this note
 
-                    ->where(function ($query2) use ($_note) { // added during_visit on this note
+                    ->orWhere(function ($query2) use ($_note) { // added during_visit on this note
                         $query2->where('is_removed', false)
                             ->where('addition_reason_category', 'DURING_VISIT')
                             ->where('added_in_note_id', $_note->id);