mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
"This pull request adds a new celery task called `check_if_is_premium_user` that checks if a user is a premium user based on their subscription status. The task retrieves the list of active subscriptions and the list of customers from the Supabase database. It then matches the subscriptions with the customers and updates the user settings with the corresponding premium features if a match is found. If a user is not found or their subscription is expired, the user settings are deleted. This task will run periodically to keep the user settings up to date with the subscription status. --------- Co-authored-by: Stan Girard <stan@quivr.app> |
||
---|---|---|
.. | ||
databases | ||
__init__.py | ||
brains_subscription_invitations.py | ||
files_in_storage.py | ||
files.py | ||
settings.py | ||
sqlalchemy_repository.py |