Fix naming when getting all discord tokens

This commit is contained in:
Logan Cusano
2025-05-25 20:43:32 -04:00
parent 3188a10a74
commit 5e6ee765d8

View File

@@ -65,8 +65,8 @@ async def get_all_discord_tokens():
"""
try:
# get the available IDs
active_d_ids = await current_app.d_id_db_h.find_discord_ids(active_only=False)
return jsonify([active_id.to_dict() for active_id in active_d_ids])
d_ids = await current_app.d_id_db_h.find_discord_ids(active_only=False)
return jsonify([d_id.to_dict() for d_id in d_ids])
except Exception as e:
print(f"Error in request_token_route: {e}")