Fix retrieve tasks (#109)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
0831e3e181
commit
acc99514ca
12 files changed
+45
-15
No files matched your search
@@ -103,7 +103,8 @@ export const getApplications = async ({
|
||||
|
||||
export const getConversations = async ({
|
||||
commit,
|
||||
state
|
||||
state,
|
||||
rootState
|
||||
}: ActionContext<IChatState, IRootState>): Promise<IChatConversation[]> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
state.status.getConversations = Status.Request;
|
||||
@@ -117,7 +118,7 @@ export const getConversations = async ({
|
||||
chatOperator
|
||||
.getConversations(
|
||||
{
|
||||
applicationId: state.application?.id
|
||||
userId: rootState.user?.id
|
||||
},
|
||||
{
|
||||
token
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
@@ -101,7 +101,7 @@ export const getService = async ({ commit, state }: ActionContext<IQrartState, I
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state }: ActionContext<IQrartState, IRootState>,
|
||||
{ commit, state, rootState }: ActionContext<IQrartState, IRootState>,
|
||||
{ offset, limit }: { offset?: number; limit?: number }
|
||||
): Promise<IQrartTask[]> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -114,7 +114,7 @@ export const getTasks = async (
|
||||
qrartOperator
|
||||
.tasks(
|
||||
{
|
||||
applicationId: state.application?.id
|
||||
userId: rootState?.user?.id
|
||||
},
|
||||
{
|
||||
token
|
||||
|
||||
@@ -103,7 +103,7 @@ export const getService = async ({ commit, state }: ActionContext<ISunoState, IR
|
||||
};
|
||||
|
||||
export const getTasks = async (
|
||||
{ commit, state }: ActionContext<ISunoState, IRootState>,
|
||||
{ commit, state, rootState }: ActionContext<ISunoState, IRootState>,
|
||||
{ offset, limit }: { offset?: number; limit?: number }
|
||||
): Promise<ISunoTask[]> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -116,7 +116,7 @@ export const getTasks = async (
|
||||
sunoOperator
|
||||
.tasks(
|
||||
{
|
||||
applicationId: state.application?.id
|
||||
userId: rootState?.user?.id
|
||||
},
|
||||
{
|
||||
token
|
||||
|
||||
Reference in new issue
Block a user