Skip to content

Commit f274d13

Browse files
chore: wip
1 parent a8727e6 commit f274d13

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

storage/framework/defaults/models/commerce/ShippingRate.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export default {
1111
useUuid: true,
1212
useTimestamps: true,
1313
useSearch: {
14-
displayable: ['id', 'method', 'weightFrom', 'weightTo', 'rate'],
15-
searchable: ['method'],
16-
sortable: ['method', 'weightFrom', 'weightTo', 'rate', 'createdAt', 'updatedAt'],
17-
filterable: ['method'],
14+
displayable: ['id', 'shipping_method_id', 'weight_from', 'weight_to', 'rate'],
15+
searchable: ['shipping_method_id'],
16+
sortable: ['shipping_method_id', 'weight_from', 'weight_to', 'rate', 'created_at', 'updated_at'],
17+
filterable: ['shipping_method_id'],
1818
},
1919

2020
useSeeder: {

storage/framework/orm/src/models/ShippingRate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ export class ShippingRateModel extends BaseOrm<ShippingRateModel, ShippingRatesT
819819
toSearchableObject(): Partial<ShippingRateJsonResponse> {
820820
return {
821821
id: this.id,
822-
method: this.method,
822+
shipping_method_id: this.shipping_method_id,
823823
weight_from: this.weight_from,
824824
weight_to: this.weight_to,
825825
rate: this.rate,

0 commit comments

Comments
 (0)