From 6a6f31315b243fbf05d344803187cfed4fb3e69a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 3 Dec 2019 20:29:58 -0800 Subject: [PATCH] modules/m_vm_fetch: Fix field name. --- modules/m_vm_fetch.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/m_vm_fetch.cc b/modules/m_vm_fetch.cc index 1a9ed5be1..bf98370c1 100644 --- a/modules/m_vm_fetch.cc +++ b/modules/m_vm_fetch.cc @@ -478,16 +478,16 @@ ircd::m::vm::fetch::state_fetch(const event &event, result.object["auth_chain_ids"] }; + const json::array &pdu_ids + { + result.object["pdu_ids"] + }; + for(const json::string &auth_chain_id : auth_chain_ids) each_state_id(auth_chain_id); - const json::array &pdus - { - result.object["pdus"] - }; - - for(const json::string &pdu : pdus) - each_state_id(pdu); + for(const json::string &pdu_id : pdu_ids) + each_state_id(pdu_id); return true; });