mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
fix duplicate packages
This commit is contained in:
+1
-1
@@ -1190,7 +1190,7 @@ Route::get('/duplicate-package-clean-up', function(){
|
||||
echo "ID: {$row->id}, Packing List ID: {$row->packing_list_id}, Description: {$row->description}, Width: {$row->width}, Height: {$row->height}, Weight: {$row->weight}, Quantity: {$row->quantity}, Created At: {$row->created_at}<br>";
|
||||
}
|
||||
// Delete all rows in the group except the first one (oldest based on created_at)
|
||||
// $firstRow = $rows->shift();
|
||||
$firstRow = $rows->shift();
|
||||
// foreach ($rows as $row) {
|
||||
// Package::where('packages')->where('id', $row->id)->delete();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user