Merge pull request #1486 from MODSetter/dev

fix(auto_reload): update task to use a lambda for user_id in async call
This commit is contained in:
Rohan Verma 2026-06-11 16:51:41 -07:00 committed by GitHub
commit 3e539311a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ def _card_error_payment_intent_id(exc: CardError) -> str | None:
@celery_app.task(name="auto_reload_credits")
def auto_reload_credits_task(user_id: str):
"""Charge the user's saved card to top up credits when below threshold."""
return run_async_celery_task(_auto_reload_credits, user_id)
return run_async_celery_task(lambda: _auto_reload_credits(user_id))
async def _auto_reload_credits(user_id: str) -> None: