Skip to content

Commit 70de826

Browse files
chore: wip
1 parent 6238bc6 commit 70de826

File tree

6 files changed

+9
-56
lines changed

6 files changed

+9
-56
lines changed

app/Actions/Commerce/LoyaltyRewardIndexAction.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/Actions/Commerce/LoyaltyRewardShowAction.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/Actions/Commerce/LoyaltyRewardStoreAction.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/Actions/Commerce/ManufacturerIndexAction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Action } from '@stacksjs/actions'
22

3-
import { manufacturer } from '@stacksjs/commerce'
3+
import { products } from '@stacksjs/commerce'
44

55
import { response } from '@stacksjs/router'
66

@@ -9,7 +9,7 @@ export default new Action({
99
description: 'Manufacturer Index ORM Action',
1010
method: 'GET',
1111
async handle() {
12-
const results = await manufacturer.fetchWithProductCount()
12+
const results = await products.manufacturer.fetchWithProductCount()
1313

1414
return response.json(results)
1515
},

app/Actions/Commerce/ManufacturerShowAction.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import type { ManufacturerRequestType } from '@stacksjs/orm'
21
import { Action } from '@stacksjs/actions'
32

4-
import { response } from '@stacksjs/router'
3+
import { products } from '@stacksjs/commerce'
4+
5+
import { request, response } from '@stacksjs/router'
56

67
export default new Action({
78
name: 'Manufacturer Show',
89
description: 'Manufacturer Show ORM Action',
910
method: 'GET',
10-
async handle(request: ManufacturerRequestType) {
11+
async handle() {
1112
const id = request.getParam('id')
1213

13-
const model = await Manufacturer.findOrFail(Number(id))
14+
const model = await products.manufacturer.fetchById(Number(id))
1415

1516
return response.json(model)
1617
},

storage/framework/core/commerce/src/gift-cards/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
export {
2-
bulkRemove,
3-
deactivate,
4-
remove,
5-
removeExpired,
2+
bulkDestroy,
3+
destroy,
64
} from './destroy'
75

86
export {

0 commit comments

Comments
 (0)