From 54bbf50e973fe6b558449332ce99952bb14f7df6 Mon Sep 17 00:00:00 2001 From: merdan Date: Sun, 12 Mar 2023 14:35:00 +0500 Subject: [PATCH] Folders --- packages/Sarga/API/Http/Controllers/Wishlists.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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);