await not that cursed

This commit is contained in:
2025-12-22 19:20:40 +02:00
parent 0caaf7cd10
commit e9d058f5f1

View File

@@ -71,7 +71,7 @@ async def view_doorboy_uids(request):
"inventory.owner.username": {"$in": users},
}
prj = {"token.uid_hash": True}
tokens = await request.app.ctx.db.inventory.find(flt, prj)
tokens = await request.app.ctx.db.inventory.find(flt, prj).to_list()
print(f"delegating {len(tokens)} doorkey tokens")
return json({"allowed_uids": tokens})