Merge pull request #266 from ErjanGavalji/main

Fix a case of lost vote.
This commit is contained in:
Michael Irwin
2022-12-09 17:16:24 -05:00
committed by GitHub

View File

@@ -48,10 +48,8 @@ namespace Worker
Console.WriteLine("Reconnecting DB");
pgsql = OpenDbConnection("Server=db;Username=postgres;Password=postgres;");
}
else
{ // Normal +1 vote requested
UpdateVote(pgsql, vote.voter_id, vote.vote);
}
// Normal +1 vote requested
UpdateVote(pgsql, vote.voter_id, vote.vote);
}
else
{