Skip to content

Commit a279321

Browse files
committed
fix: accept also pid
1 parent b5e62a6 commit a279321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files/domain/useCases/ReplaceFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ReplaceFile implements UseCase<void> {
1717
*
1818
* Note: This use case can be used independently of the UploadFile use case, e.g., supporting scenarios in which the files already exist in S3 or have been uploaded via some out-of-band method.
1919
*
20-
* @param {number} [fileId] - The File identifier.
20+
* @param {number | string} [fileId] - The File identifier, which can be a string (for persistent identifiers), or a number (for numeric identifiers).
2121
* @param {UploadedFileDTO} [uploadedFileDTO] - File DTO associated with the uploaded file.
2222
* @returns {Promise<void>} A promise that resolves when the file has been successfully replaced.
2323
* @throws {WriteError} - If there are errors while writing data.

0 commit comments

Comments
 (0)