From f33b8754533b25176707f48c6690095ff510b17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Saracca?= Date: Mon, 19 Aug 2024 11:22:17 -0300 Subject: [PATCH] comment out js outdated file upload use case --- src/files/infrastructure/FileJSDataverseRepository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files/infrastructure/FileJSDataverseRepository.ts b/src/files/infrastructure/FileJSDataverseRepository.ts index 89d6fea4b..de9ece5e6 100644 --- a/src/files/infrastructure/FileJSDataverseRepository.ts +++ b/src/files/infrastructure/FileJSDataverseRepository.ts @@ -15,7 +15,6 @@ import { getFileDownloadCount, getFileUserPermissions, uploadFile as jsUploadFile, - addUploadedFileToDataset, ReadError } from '@iqss/dataverse-client-javascript' import { FileCriteria } from '../domain/models/FileCriteria' @@ -307,6 +306,7 @@ export class FileJSDataverseRepository implements FileRepository { } addUploadedFile(datasetId: number | string, file: FileHolder, storageId: string): Promise { - return addUploadedFileToDataset.execute(datasetId, file.file, storageId) + return new Promise(() => {}) + // return addUploadedFilesToDataset.execute(datasetId, file.file) } }