Skip to content

Commit

Permalink
comment out js outdated file upload use case
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Aug 19, 2024
1 parent 9abeed4 commit f33b875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/infrastructure/FileJSDataverseRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
getFileDownloadCount,
getFileUserPermissions,
uploadFile as jsUploadFile,
addUploadedFileToDataset,
ReadError
} from '@iqss/dataverse-client-javascript'
import { FileCriteria } from '../domain/models/FileCriteria'
Expand Down Expand Up @@ -307,6 +306,7 @@ export class FileJSDataverseRepository implements FileRepository {
}

addUploadedFile(datasetId: number | string, file: FileHolder, storageId: string): Promise<void> {

Check warning on line 308 in src/files/infrastructure/FileJSDataverseRepository.ts

View workflow job for this annotation

GitHub Actions / lint

'datasetId' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 308 in src/files/infrastructure/FileJSDataverseRepository.ts

View workflow job for this annotation

GitHub Actions / lint

'file' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 308 in src/files/infrastructure/FileJSDataverseRepository.ts

View workflow job for this annotation

GitHub Actions / lint

'storageId' is defined but never used. Allowed unused args must match /^_/u
return addUploadedFileToDataset.execute(datasetId, file.file, storageId)
return new Promise<void>(() => {})
// return addUploadedFilesToDataset.execute(datasetId, file.file)
}
}

0 comments on commit f33b875

Please sign in to comment.