quivr/backend/models
Stan Girard ec58935d9b
feat: Add premium user check in celery task (#2668)
"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>
2024-06-13 01:14:12 -07:00
..
databases feat: Add premium user check in celery task (#2668) 2024-06-13 01:14:12 -07:00
__init__.py refactor: Refacto code #1 (#2458) 2024-04-20 02:22:05 -07:00
brains_subscription_invitations.py feat(lcel): migrated to lcel and pydantic (#2185) 2024-02-14 14:01:35 -08:00
files_in_storage.py feat: get files from storage (#1205) 2023-09-20 09:35:37 +02:00
files.py feat(upload): async improved (#2544) 2024-06-04 06:29:27 -07:00
settings.py Feat/auth-playground (#2605) 2024-05-21 13:20:35 -07:00
sqlalchemy_repository.py Fix/requests limiting (#980) 2023-08-21 14:05:13 +02:00