Fix retrieve tasks (#109)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-08-16 15:41:24 +08:00
1 parent 0831e3e181
commit acc99514ca
12 files changed
+45 -15

No files matched your search

+2 -2
View File
@@ -100,7 +100,7 @@ export const getService = async ({ commit, state }: ActionContext<IMidjourneySta
};
export const getTasks = async (
{ commit, state }: ActionContext<IMidjourneyState, IRootState>,
{ commit, state, rootState }: ActionContext<IMidjourneyState, IRootState>,
{ offset, limit }: { offset?: number; limit?: number }
): Promise<IMidjourneyTasksResponse> => {
return new Promise((resolve, reject) => {
@@ -113,7 +113,7 @@ export const getTasks = async (
midjourneyOperator
.tasks(
{
applicationId: state.application?.id,
userId: rootState?.user?.id,
offset,
limit
},