Ken hai 1 semana
pai
achega
edc83b3326
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      app/Services/ActivityRewardService.php

+ 6 - 0
app/Services/ActivityRewardService.php

@@ -26,6 +26,12 @@ class ActivityRewardService extends BaseService
     public static function getWhere(array $search = []): array
     {
         $where = [];
+
+        if (isset($search['id']) && !empty($search['id'])) {
+            $where[] = ['id', '=', $search['id']];
+        }
+
+
         if (isset($search['title']) && !empty($search['title'])) {
             $where[] = ['title', 'like', "%{$search['title']}%"];
         }