Skip to content

Commit

Permalink
fix updateTally
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDema committed Dec 5, 2024
1 parent e4edc56 commit 6b5780e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proposal_tracker_backend/Tally/TallyService.mo
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ module {
updateNeuronTopics(tally.governanceCanister, neuronId, removedTopics, addedTopics);
} else {
//neuron is new, add it
Map.set(tally.neurons, thash, neuronId, ());
let neuronMap = Utils.getElseCreate(tallyModel.neurons, thash, tally.governanceCanister , Map.new<NeuronId, NeuronData>());
let tallyByNeuronMap = Utils.getElseCreate(tallyModel.talliesByNeuron, thash, tally.governanceCanister, Map.new<NeuronId, List.List<TallyData>>());
switch(Map.get(neuronMap, thash, neuronId)){
Expand Down

0 comments on commit 6b5780e

Please sign in to comment.