Ken 1 Minggu lalu
induk
melakukan
115c94f610
1 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 4 3
      app/Http/Controllers/api/ActivityReward.php

+ 4 - 3
app/Http/Controllers/api/ActivityReward.php

@@ -34,6 +34,7 @@ class ActivityReward extends BaseController
                 } else {
                     $activity->is_claimed = false;
                 }
+                unset($activity->activityUser);
                 return $activity;
             })->toArray();
 
@@ -42,9 +43,9 @@ class ActivityReward extends BaseController
 
 
 
-            foreach ($list as &$item) {
-                unset($item['activity_user']);
-            }
+//            foreach ($list as &$item) {
+//                unset($item['activity_user']);
+//            }
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {