feat(api): changes
This commit is contained in:
parent
0fd7d1d80c
commit
779c85dfda
1 changed files with 3 additions and 3 deletions
|
|
@ -16,9 +16,9 @@ def get_by_tenant_key(tenant_key):
|
||||||
t.version_number,
|
t.version_number,
|
||||||
t.opt_out
|
t.opt_out
|
||||||
FROM public.tenants AS t
|
FROM public.tenants AS t
|
||||||
WHERE t.user_id = %(user_id)s AND t.deleted_at ISNULL
|
WHERE t.tenant_key = %(tenant_key)s AND t.deleted_at ISNULL
|
||||||
LIMIT 1;""",
|
LIMIT 1;""",
|
||||||
{"user_id": tenant_key})
|
{"tenant_key": tenant_key})
|
||||||
)
|
)
|
||||||
return helper.dict_to_camel_case(cur.fetchone())
|
return helper.dict_to_camel_case(cur.fetchone())
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ def get_by_tenant_id(tenant_id):
|
||||||
'{license.EDITION}' AS edition,
|
'{license.EDITION}' AS edition,
|
||||||
t.version_number,
|
t.version_number,
|
||||||
t.opt_out,
|
t.opt_out,
|
||||||
t.user_id AS tenant_key
|
t.tenant_key
|
||||||
FROM public.tenants AS t
|
FROM public.tenants AS t
|
||||||
WHERE t.tenant_id = %(tenantId)s AND t.deleted_at ISNULL
|
WHERE t.tenant_id = %(tenantId)s AND t.deleted_at ISNULL
|
||||||
LIMIT 1;""",
|
LIMIT 1;""",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue