@fleetbase/storefront-engine 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/composer.json
CHANGED
package/extension.json
CHANGED
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ class CustomerController extends Controller
|
|
|
74
74
|
return response()->apiError('Not authorized to view customers orders');
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
$results = Order::
|
|
77
|
+
$results = Order::queryWithRequest($request, function (&$query) use ($customer) {
|
|
78
78
|
$query->where('customer_uuid', $customer->uuid)->whereNull('deleted_at')->withoutGlobalScopes();
|
|
79
79
|
|
|
80
80
|
// dont query any master orders if its a network
|
|
@@ -102,7 +102,7 @@ class CustomerController extends Controller
|
|
|
102
102
|
return response()->apiError('Not authorized to view customers places');
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
$results = Place::
|
|
105
|
+
$results = Place::queryWithRequest($request, function (&$query) use ($customer) {
|
|
106
106
|
$query->where('owner_uuid', $customer->uuid);
|
|
107
107
|
});
|
|
108
108
|
|