Skip to content

Commit a052ead

Browse files
committed
chore: wip
1 parent 6b63a6b commit a052ead

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

app/Actions/Dashboard/GetProjects.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { Action } from '@stacksjs/actions'
44
export default new Action({
55
name: 'GetProjects',
66
description: 'Gets your local Stacks projects.',
7-
apiResponse: true,
7+
path: '/api/projects',
88

99
async handle() {
10+
console.log('GetProjects called from Action')
1011
// return Project.take(3) // reuse the buddy list:projects command
1112
},
1213
})

app/Actions/Dashboard/Settings/UpdateAiConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Action } from '@stacksjs/actions'
2+
import { schema } from '@stacksjs/validation'
23

34
export default new Action({
45
name: 'UpdateAiConfig',

storage/framework/core/actions/src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface ActionOptions {
1919
apiResponse?: boolean
2020
validations?: Record<ValidationKey, ValidationValue>
2121
path?: string
22-
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
22+
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
2323
rate?: JobOptions['rate']
2424
tries?: JobOptions['tries']
2525
backoff?: JobOptions['backoff']

storage/framework/core/buddy/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ process.on('uncaughtException', (error: Error) => {
1616
})
1717

1818
process.on('unhandledRejection', (error: Error) => {
19-
log.debug('unhandledRejection')
19+
log.debug('unhandledRejection', error)
2020
log.error(error)
2121
process.exit(1)
2222
})

0 commit comments

Comments
 (0)