Skip to content

Commit

Permalink
Fix Midjourney task issue (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
崔庆才丨静觅 authored Mar 6, 2024
1 parent f2aeea9 commit 705501b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix mj task issue",
"packageName": "@zhishuyun/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions src/store/midjourney/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const getImagineTasks = async (
});
log(getImagineTasks, 'get imagine api usage success', apiUsages);
let tasks = (await midjourneyOperator.tasks(apiUsages.map((apiUsage) => apiUsage.metadata?.task_id as string))).data;
log(getImagineTasks, 'get imagine tasks success', tasks);
tasks = tasks.map((task: IMidjourneyImagineTask) => {
const apiUsage = apiUsages.filter((apiUsage) => apiUsage.metadata?.task_id === task?.id)[0];
return {
Expand Down

0 comments on commit 705501b

Please sign in to comment.