Add default settings to let new users be subscribed on trial

- Add the default user to a subscription trial
- Update associated unit tests
This commit is contained in:
sabaimran
2023-11-10 22:38:28 -08:00
parent 0a950d9382
commit e2e96f9aa4
9 changed files with 86 additions and 11 deletions

View File

@@ -101,6 +101,8 @@ async def create_google_user(token: dict) -> KhojUser:
user=user,
)
await Subscription.objects.acreate(user=user, type="trial")
return user