diff --git a/packages/Sarga/API/Http/Controllers/Wishlists.php b/packages/Sarga/API/Http/Controllers/Wishlists.php index 015c84162..bbaadcb64 100644 --- a/packages/Sarga/API/Http/Controllers/Wishlists.php +++ b/packages/Sarga/API/Http/Controllers/Wishlists.php @@ -121,14 +121,8 @@ class Wishlists extends WishlistController public function moveToFolder(Request $request, $folder_id){ $customer = $request->user(); - Log::info($request->wishlist); - - $wishlist = is_array($request->wishlist)?: array($request->wishlist); - - Log::info($wishlist); - if($this->wishlistRepository->where('customer_id',$customer->id) - ->whereIn('id',$wishlist) + ->whereIn('id',$request->wishlist) ->update(['folder_id' => $folder_id])){ // $folder = app(FolderRepository::class)->with('wishlist')->find($folder_id);