refactor(api_keys): provide identifier for api key in the expiry reminder email (#3888)

Co-authored-by: Chethan <chethan.rao@juspay.in>
This commit is contained in:
Ravi Kiran
2024-03-04 19:26:35 +05:30
committed by GitHub
parent 5eff9d47d3
commit 901d61bc0d
5 changed files with 31 additions and 60 deletions

View File

@ -141,6 +141,8 @@ mod diesel_impl {
pub struct ApiKeyExpiryTrackingData {
pub key_id: String,
pub merchant_id: String,
pub api_key_name: String,
pub prefix: String,
pub api_key_expiry: Option<PrimitiveDateTime>,
// Days on which email reminder about api_key expiry has to be sent, prior to it's expiry.
pub expiry_reminder_days: Vec<u8>,