mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-18 20:09:25 +00:00
fix: update user organization role_id from 3 to 4 in join_org and create_user functions for consistency
This commit is contained in:
parent
5b192290f0
commit
c194114bfc
2 changed files with 3 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ async def join_org(
|
|||
user_organization = UserOrganization(
|
||||
user_id=user.id,
|
||||
org_id=org.id,
|
||||
role_id=3,
|
||||
role_id=4,
|
||||
creation_date=str(datetime.now()),
|
||||
update_date=str(datetime.now()),
|
||||
)
|
||||
|
|
@ -102,7 +102,7 @@ async def join_org(
|
|||
user_organization = UserOrganization(
|
||||
user_id=user.id,
|
||||
org_id=org.id,
|
||||
role_id=3,
|
||||
role_id=4,
|
||||
creation_date=str(datetime.now()),
|
||||
update_date=str(datetime.now()),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ async def create_user(
|
|||
user_organization = UserOrganization(
|
||||
user_id=user.id if user.id else 0,
|
||||
org_id=int(org_id),
|
||||
role_id=3,
|
||||
role_id=4,
|
||||
creation_date=str(datetime.now()),
|
||||
update_date=str(datetime.now()),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue