TF-1842: Handle error for _deleteSendingEmailAction and _sendEmailAction

(cherry picked from commit 7b2ab3e85a778a6662ede7c81b3cdddcbd0e7204)
This commit is contained in:
HuyNguyen
2023-05-31 22:06:56 +07:00
committed by Dat Vu
parent 0556445f97
commit 9405fa60d9
17 changed files with 51 additions and 59 deletions
@@ -34,9 +34,9 @@ class SendingEmailCacheManager {
Future<void> deleteSendingEmail(
AccountId accountId,
UserName userName,
String sendingEmailId
String sendingId
) {
final keyCache = TupleKey(sendingEmailId, accountId.asString, userName.value).encodeKey;
final keyCache = TupleKey(sendingId, accountId.asString, userName.value).encodeKey;
log('SendingEmailCacheManager::deleteSendingEmail():keyCache: $keyCache');
return _hiveCacheClient.deleteItem(keyCache);
}