fix(chalice): changed delete-metadata (#2268)

This commit is contained in:
Kraiem Taha Yassine 2024-06-12 11:34:57 +02:00 committed by GitHub
parent be15f89677
commit 904d861bc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,13 +132,6 @@ def delete(tenant_id, project_id, index: int):
WHERE project_id = %(project_id)s AND deleted_at ISNULL;""",
{"project_id": project_id})
cur.execute(query=query)
query = cur.mogrify(f"""UPDATE public.sessions
SET {colname}= NULL
WHERE project_id = %(project_id)s
AND {colname} IS NOT NULL
""",
{"project_id": project_id})
cur.execute(query=query)
return {"data": get(project_id)}