WIP: #7283 item_missing_e2e #1029

Draft
jsegarra wants to merge 190 commits from 7283_item_missing_e2e into dev
1 changed files with 12 additions and 16 deletions
Showing only changes of commit 9665a3407f - Show all commits

View File

@ -7,7 +7,6 @@ const { getTokenMultimedia } = useSession();
const token = getTokenMultimedia();
export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) {
try {
const appUrl = (await getUrl('', 'lilium')).replace('/#/', '');
const response = await axios.get(
url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`,
@ -22,7 +21,4 @@ export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile',
: 'downloaded-file';
exportFile(filename, response.data);
} catch (error) {
console.error('Error downloading the file', error);
}
}