fix(tags): delete_tag current_user["id"] → current_user["user_id"]
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -279,7 +279,7 @@ async def delete_tag(
|
|||||||
):
|
):
|
||||||
"""Delete a tag and cascade-delete all its assignments."""
|
"""Delete a tag and cascade-delete all its assignments."""
|
||||||
tenant_id = uuid.UUID(current_user["tenant_id"])
|
tenant_id = uuid.UUID(current_user["tenant_id"])
|
||||||
user_id = uuid.UUID(current_user["id"])
|
user_id = uuid.UUID(current_user["user_id"])
|
||||||
tid = _parse_uuid(tag_id, "tag_id")
|
tid = _parse_uuid(tag_id, "tag_id")
|
||||||
|
|
||||||
result = await db.execute(select(Tag).where(Tag.id == tid, Tag.tenant_id == tenant_id))
|
result = await db.execute(select(Tag).where(Tag.id == tid, Tag.tenant_id == tenant_id))
|
||||||
|
|||||||
Reference in New Issue
Block a user