fix: handle session and confirm flow discrepancy in surcharge details (#2696)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2023-11-14 16:11:38 +05:30
committed by GitHub
parent 856c7af77e
commit cafea45982
20 changed files with 477 additions and 77 deletions

View File

@ -248,7 +248,7 @@ impl super::RedisConnectionPool {
&self,
key: &str,
values: V,
ttl: Option<u32>,
ttl: Option<i64>,
) -> CustomResult<(), errors::RedisError>
where
V: TryInto<RedisMap> + Debug + Send + Sync,
@ -260,11 +260,10 @@ impl super::RedisConnectionPool {
.await
.into_report()
.change_context(errors::RedisError::SetHashFailed);
// setting expiry for the key
output
.async_and_then(|_| {
self.set_expiry(key, ttl.unwrap_or(self.config.default_hash_ttl).into())
self.set_expiry(key, ttl.unwrap_or(self.config.default_hash_ttl.into()))
})
.await
}