Skip to content

Commit d9dbe89

Browse files
committed
Add number to prompt response
1 parent f5aa691 commit d9dbe89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/api.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export type ComfyAPIHistoryItem = [
4545
]
4646

4747
export type ComfyAPIPromptSuccessResponse = {
48-
promptID: PromptID
48+
promptID: PromptID,
49+
number: number
4950
}
5051

5152
export type ComfyAPIPromptResponse = ComfyAPIPromptSuccessResponse | ComfyAPIPromptErrorResponse
@@ -295,7 +296,7 @@ export default class ComfyAPI {
295296
}
296297
return res.json()
297298
})
298-
.then(raw => { return { promptID: raw.prompt_id } })
299+
.then(raw => { return { promptID: raw.prompt_id, number: raw.number } })
299300
.catch(error => { return error })
300301
}
301302

0 commit comments

Comments
 (0)