Skip to content

Commit 99c625c

Browse files
committed
fix(ashby): fix response field mappings for changeStage and createNote
1 parent 8221d3f commit 99c625c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

apps/sim/blocks/blocks/ashby.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ export const AshbyBlock: BlockConfig = {
224224
type: 'short-input',
225225
required: { field: 'operation', value: 'change_application_stage' },
226226
placeholder: 'Interview stage UUID',
227-
condition: { field: 'operation', value: ['create_application', 'change_application_stage'] },
227+
condition: {
228+
field: 'operation',
229+
value: ['create_application', 'change_application_stage', 'list_interviews'],
230+
},
228231
},
229232
{
230233
id: 'creditedToUserId',

apps/sim/tools/ashby/change_application_stage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AshbyChangeApplicationStageParams {
1010
interface AshbyChangeApplicationStageResponse extends ToolResponse {
1111
output: {
1212
applicationId: string
13-
stageId: string
13+
stageId: string | null
1414
}
1515
}
1616

@@ -81,8 +81,8 @@ export const changeApplicationStageTool: ToolConfig<
8181
return {
8282
success: true,
8383
output: {
84-
applicationId: r.applicationId ?? null,
85-
stageId: r.stageId ?? null,
84+
applicationId: r.id ?? null,
85+
stageId: r.currentInterviewStage?.id ?? null,
8686
},
8787
}
8888
},

apps/sim/tools/ashby/create_note.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const createNoteTool: ToolConfig<AshbyCreateNoteParams, AshbyCreateNoteRe
7878
return {
7979
success: true,
8080
output: {
81-
noteId: r.noteId ?? null,
81+
noteId: r.id ?? null,
8282
},
8383
}
8484
},

0 commit comments

Comments
 (0)