user to only username

This commit is contained in:
2026-06-12 00:10:57 +03:00
parent 412e5e65c6
commit 37bcfa2ee2
2 changed files with 5 additions and 12 deletions

View File

@@ -211,12 +211,7 @@ async def swipe(request):
"timestamp": timestamp,
"door": data["door"],
"approved": data["approved"],
"user": {
"id": token.get("inventory", {}).get("owner", {}).get("username", ""),
"name": token.get("inventory", {})
.get("owner", {})
.get("display_name", "Unclaimed Token"),
},
"user": token.get("inventory", {}).get("owner", {}).get("username", ""),
"uid_hash": data["uid_hash"],
}
await request.app.ctx.db.doorlog.insert_one(event_swipe)