fix - only schedule spend alerting when db is not none

This commit is contained in:
Ishaan Jaff 2024-05-13 12:30:54 -07:00
parent 7f6f196e66
commit 40b2f33a80

View file

@ -3483,6 +3483,7 @@ async def startup_event():
if (
proxy_logging_obj is not None
and proxy_logging_obj.slack_alerting_instance is not None
and prisma_client is not None
):
print("Alerting: Initializing Weekly/Monthly Spend Reports") # noqa
### Schedule weekly/monhtly spend reports ###