feat(api): added free plan for oauth signup
This commit is contained in:
parent
caf5d76050
commit
eab18dd9b4
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ from chalicelib.utils import captcha, smtp
|
|||
from chalicelib.utils import helper
|
||||
from chalicelib.utils import pg_client
|
||||
from chalicelib.utils.TimeUTC import TimeUTC
|
||||
from chalicelib.static_definitions import plans_definiton
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -127,7 +128,8 @@ async def create_oauth_tenant(fullname: str, email: str):
|
|||
params = {
|
||||
"email": email, "fullname": fullname, "projectName": project_name,
|
||||
"data": json.dumps({"lastAnnouncementView": TimeUTC.now()}),
|
||||
"permissions": [p.value for p in schemas.Permissions]
|
||||
"permissions": [p.value for p in schemas.Permissions],
|
||||
"plan": json.dumps(plans_definiton.FREE_PLAN)
|
||||
}
|
||||
query = """WITH t AS (
|
||||
INSERT INTO public.tenants (name, plan)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue