diff --git a/change/@zhishuyun-hub-03de8be8-6d50-418b-b412-c03d14f0de5c.json b/change/@zhishuyun-hub-03de8be8-6d50-418b-b412-c03d14f0de5c.json new file mode 100644 index 0000000..680dac3 --- /dev/null +++ b/change/@zhishuyun-hub-03de8be8-6d50-418b-b412-c03d14f0de5c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix mj task issue", + "packageName": "@zhishuyun/hub", + "email": "cqc@germey.cn", + "dependentChangeType": "patch" +} diff --git a/src/store/midjourney/actions.ts b/src/store/midjourney/actions.ts index 147b015..b43a321 100644 --- a/src/store/midjourney/actions.ts +++ b/src/store/midjourney/actions.ts @@ -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 {