TF-1865: Create func update sending email in data layer
(cherry picked from commit d2b2f7af4afd4fc817ae404548650182deb9e0ed)
This commit is contained in:
@@ -56,4 +56,14 @@ class SendingEmailCacheManager {
|
||||
}
|
||||
|
||||
Future<void> clearAllSendingEmails() => _hiveCacheClient.clearAllData();
|
||||
|
||||
Future<void> updateSendingEmail(
|
||||
AccountId accountId,
|
||||
UserName userName,
|
||||
SendingEmailHiveCache sendingEmailHiveCache
|
||||
) async {
|
||||
final keyCache = TupleKey(sendingEmailHiveCache.sendingId, accountId.asString, userName.value).encodeKey;
|
||||
log('SendingEmailCacheManager::updateSendingEmail():keyCache: $keyCache | sendingEmailHiveCache: $sendingEmailHiveCache');
|
||||
return await _hiveCacheClient.updateItem(keyCache, sendingEmailHiveCache, needToReopen: true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user