Skip to content

Commit

Permalink
fix: fix db call to create an organization (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkier authored Oct 12, 2023
1 parent 8a96dd2 commit e6671ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/zeno_backend/database/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def organization(user: User, organization: Organization):
db.execute(
"INSERT INTO user_organization (user_id, organization_id, admin) "
"VALUES (%s,%s,%s);",
[user.id, id[0], True],
[user.id, id[0][0], True],
)
db.commit()

Expand Down

0 comments on commit e6671ff

Please sign in to comment.