File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/files/domain/useCases Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class AddUploadedFileToDataset implements UseCase<void> {
2020 * @param {File } [file] - The file object that has been uploaded.
2121 * @param {string } [storageId] - The storage identifier associated with the uploaded file.
2222 * @returns {Promise<void> } A promise that resolves when the file has been successfully added to the dataset.
23- *
23+ * @throws { DirectUploadClientError } - If there are errors while performing the operation.
2424 */
2525 async execute ( datasetId : number | string , file : File , storageId : string ) : Promise < void > {
2626 await this . directUploadClient . addUploadedFileToDataset ( datasetId , file , storageId )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class UploadFile implements UseCase<string> {
2020 * @param {function(number): void } [progress] - A callback function to monitor the upload progress, receiving the current progress as a number.
2121 * @param {AbortController } [abortController] - An AbortController to manage and abort the upload process if necessary.
2222 * @returns {Promise<string> } A promise that resolves to the storage identifier of the uploaded file.
23- *
23+ * @throws { DirectUploadClientError } - If there are errors while performing the operation.
2424 */
2525 async execute (
2626 datasetId : number | string ,
You can’t perform that action at this time.
0 commit comments