Skip to content

Commit

Permalink
rest
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jul 25, 2024
1 parent 263523c commit f46e518
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/actions/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ let openRequests = 0;
function pathToFileName(dongleId, path) {
const [seg, fileType] = path.split('/');
const type = Object.entries(FILE_NAMES).find((e) => e[1].includes(fileType))[0];
console.log('pathToFileName', path, type)
return `${dongleId}|${seg}/${type}`;
}

Expand Down Expand Up @@ -98,7 +97,6 @@ export function fetchFiles(routeName, nocache = false) {
let files;
try {
files = await Raw.getRouteFiles(routeName, nocache);
console.log('files', files)
} catch (err) {
console.error(err);
Sentry.captureException(err, { fingerprint: 'action_files_fetch_files' });
Expand All @@ -119,7 +117,6 @@ export function fetchFiles(routeName, nocache = false) {
};
return state;
}, {});
console.log('urls', urls)

dispatch({
type: Types.ACTION_FILES_URLS,
Expand Down Expand Up @@ -310,7 +307,6 @@ export function doUpload(dongleId, paths, urls) {

export function fetchAthenaQueue(dongleId) {
return async (dispatch) => {
console.log('fetchAthenaQueue')
let queue;
try {
queue = await Devices.getAthenaQueue(dongleId);
Expand All @@ -328,12 +324,10 @@ export function fetchAthenaQueue(dongleId) {

if (q.method === 'uploadFileToUrl') {
const fileName = pathToFileName(dongleId, q.params[0]);
console.log('uploadFileToUrl', q.params[0], fileName)
newUploading[fileName] = { progress: 0, current: false };
} else if (q.method === 'uploadFilesToUrls') {
for (const { fn } of q.params.files_data) {
const fileName = pathToFileName(dongleId, fn);
console.log(['uploadFilesToUrls', fn, fileName])
newUploading[fileName] = { progress: 0, current: false };
}
}
Expand Down

0 comments on commit f46e518

Please sign in to comment.