This commit is contained in:
merdan 2023-03-12 14:35:00 +05:00
parent b0bf11407e
commit 54bbf50e97
1 changed files with 1 additions and 7 deletions

View File

@ -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);