TF-1842: Create deleteSendingEmail in domain layer
(cherry picked from commit b66931aa1b6cabb7ac32d9457d6d4ed69d3ea42d)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user