mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-12 20:45:20 +02:00
Compare commits
No commits in common. "main" and "v0.0.28" have entirely different histories.
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def _card_error_payment_intent_id(exc: CardError) -> str | None:
|
||||||
@celery_app.task(name="auto_reload_credits")
|
@celery_app.task(name="auto_reload_credits")
|
||||||
def auto_reload_credits_task(user_id: str):
|
def auto_reload_credits_task(user_id: str):
|
||||||
"""Charge the user's saved card to top up credits when below threshold."""
|
"""Charge the user's saved card to top up credits when below threshold."""
|
||||||
return run_async_celery_task(lambda: _auto_reload_credits(user_id))
|
return run_async_celery_task(_auto_reload_credits, user_id)
|
||||||
|
|
||||||
|
|
||||||
async def _auto_reload_credits(user_id: str) -> None:
|
async def _auto_reload_credits(user_id: str) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue