EnCiv / undebate

Not debates, but recorded online video Q&A with candidates so voters can quickly can get to know them, for every candidate, for every election, across the US.
Other
20 stars 14 forks source link

Bug Fix: Fixes issues with API that finds viewers #292

Open MrNanosh opened 3 years ago

MrNanosh commented 3 years ago

The branch was started to create an interface where organizations like Harford's Voters coalition could insert an iframe with viewers relevant to local elections. The interface was put in the Backlog but this branch contains fixes to the original API that allows the retrieval of viewers by address.

The bug: submitting the address would find viewers but the function responsible for searching the database was not returning them despite the object returning non-empty. The problem was that a shallow copy was being made where a deep copy was needed to get the data containing URLs to viewers.