TF-1869: Double check email have been duplicated and remove it

(cherry picked from commit d1d448502228633554ea6eeb9a4bb9c98f849b18)
This commit is contained in:
HuyNguyen
2023-05-24 11:31:12 +07:00
committed by Dat Vu
parent acda93f8e1
commit 953894e3a9
12 changed files with 23 additions and 23 deletions
@@ -77,7 +77,7 @@ class DetailedEmailCacheManager {
EmailId emailId
) async {
final keyCache = TupleKey(emailId.asString, accountId.asString, userName.value).encodeKey;
final detailedEmailCache = await _cacheClient.getItem(keyCache);
final detailedEmailCache = await _cacheClient.getItem(keyCache, needToReopen: true);
log('DetailedEmailCacheManager::getDetailEmailExistedInCache():Email: $detailedEmailCache');
return detailedEmailCache;
}
@@ -93,8 +93,8 @@ class OpenedEmailCacheManager {
EmailId emailId
) async {
final keyCache = TupleKey(emailId.asString, accountId.asString, userName.value).encodeKey;
final detailedEmailCache = await _cacheClient.getItem(keyCache);
log('OpenedEmailCacheManager::_getDetailedEmailCache():_getDetailedEmailCache: $detailedEmailCache');
final detailedEmailCache = await _cacheClient.getItem(keyCache,needToReopen: true);
log('OpenedEmailCacheManager::getOpenedEmailExistedInCache(): $detailedEmailCache');
return detailedEmailCache;
}