Merge remote-tracking branch 'origin/api-v1.10.0' into dev
This commit is contained in:
commit
0d21010080
2 changed files with 0 additions and 21 deletions
|
|
@ -514,14 +514,6 @@ def set_password_invitation(user_id, new_password):
|
|||
}
|
||||
|
||||
|
||||
def count_members():
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute("""SELECT COUNT(user_id)
|
||||
FROM public.users WHERE deleted_at IS NULL;""")
|
||||
r = cur.fetchone()
|
||||
return r["count"]
|
||||
|
||||
|
||||
def email_exists(email):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute(
|
||||
|
|
|
|||
|
|
@ -591,19 +591,6 @@ def set_password_invitation(tenant_id, user_id, new_password):
|
|||
}
|
||||
|
||||
|
||||
def count_members(tenant_id):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute(
|
||||
cur.mogrify(
|
||||
"""SELECT
|
||||
COUNT(user_id)
|
||||
FROM public.users WHERE tenant_id = %(tenant_id)s AND deleted_at IS NULL;""",
|
||||
{"tenant_id": tenant_id})
|
||||
)
|
||||
r = cur.fetchone()
|
||||
return r["count"]
|
||||
|
||||
|
||||
def email_exists(email):
|
||||
with pg_client.PostgresClient() as cur:
|
||||
cur.execute(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue