fix(tags): delete_tag current_user["id"] → current_user["user_id"]
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-21 21:10:28 +02:00
parent f0bf53f0b3
commit c02fc75421
+1 -1
View File
@@ -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))