⤵️ Downloads page WIP

This commit is contained in:
2022-06-03 09:41:40 -07:00
parent ad07d85944
commit 8ce44daf9a
8 changed files with 86 additions and 30 deletions

View File

@@ -130,7 +130,7 @@ export const downloadAirDCPPItem =
true,
);
}
console.log(comicObject)
console.log(comicObject);
let bundleDBImportResult = {};
const downloadResult = await ADCPPSocket.post(
`search/${instanceId}/results/${resultId}/download`,
@@ -162,7 +162,6 @@ export const downloadAirDCPPItem =
(item) => item.id,
);
}
console.log(comicObjectId)
if (!isNil(downloadResult)) {
bundleDBImportResult = await axios({
method: "POST",
@@ -255,3 +254,21 @@ export const getBundlesForComic =
throw error;
}
};
export const getTransfers =
(ADCPPSocket: any, credentials: any) => async (dispatch) => {
try {
if (!ADCPPSocket.isConnected()) {
await ADCPPSocket.connect(
`${credentials.username}`,
`${credentials.password}`,
true,
);
}
console.log(ADCPPSocket);
const foo = await ADCPPSocket.get('queue/bundles/1/50', {});
console.log(foo);
} catch (err) {
throw err;
}
};