TF-2628 [Part-2] Add attachment property to DownloadAttachmentForWebFailure & ViewAttachmentForWebFailure

This commit is contained in:
DatDang
2024-02-27 15:58:59 +07:00
committed by Dat H. Pham
parent ab8544c3ad
commit 6fe62cb068
6 changed files with 20 additions and 4 deletions
@@ -72,6 +72,7 @@ class DownloadAttachmentForWebInteractor {
} catch (exception) {
yield Left<Failure, Success>(
DownloadAttachmentForWebFailure(
attachmentBlobId: attachment.blobId,
taskId: taskId,
exception: exception
)
@@ -34,6 +34,7 @@ class ViewAttachmentForWebInteractor {
(failure) {
if (failure is DownloadAttachmentForWebFailure) {
return Left(ViewAttachmentForWebFailure(
attachmentBlobId: attachment.blobId,
taskId: failure.taskId,
exception: failure.exception,
));