TF-1842: Create deleteSendingEmail in domain layer

(cherry picked from commit b66931aa1b6cabb7ac32d9457d6d4ed69d3ea42d)
This commit is contained in:
HuyNguyen
2023-05-31 00:57:45 +07:00
committed by Dat Vu
parent 36ab1316e2
commit 22bba8c459
5 changed files with 61 additions and 0 deletions
@@ -260,4 +260,12 @@ class EmailHiveCacheDataSourceImpl extends EmailDataSource {
return sendingEmailsCache.toSendingEmails();
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> deleteSendingEmail(AccountId accountId, UserName userName, EmailId emailId) {
return Future.sync(() async {
return await _sendingEmailCacheManager.deleteSendingEmail(accountId, userName, emailId.id.value);
}).catchError(_exceptionThrower.throwException);
}
}