feat - send email on api key created

This commit is contained in:
Ishaan Jaff 2024-05-24 18:14:45 -07:00
parent 1434e5b66a
commit db54599222

View file

@ -5413,9 +5413,9 @@ async def generate_key_fn(
event="key_created",
event_group="key",
event_message=f"API Key Created",
token=response.get("token", None),
token=response.get("token", ""),
spend=response.get("spend", 0.0),
max_budget=response.get("max_budget", "Unlimited"),
max_budget=response.get("max_budget", 0.0),
user_id=response.get("user_id", None),
team_id=response.get("team_id", "Default Team"),
key_alias=response.get("key_alias", None),