Skip to content

Commit 372d825

Browse files
authored
Merge pull request #266 from ErjanGavalji/main
Fix a case of lost vote.
2 parents e96cc16 + db6f956 commit 372d825

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎worker/src/Worker/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ public static int Main(string[] args)
4848
Console.WriteLine("Reconnecting DB");
4949
pgsql = OpenDbConnection("Server=db;Username=postgres;Password=postgres;");
5050
}
51-
else
52-
{ // Normal +1 vote requested
53-
UpdateVote(pgsql, vote.voter_id, vote.vote);
54-
}
51+
// Normal +1 vote requested
52+
UpdateVote(pgsql, vote.voter_id, vote.vote);
5553
}
5654
else
5755
{

0 commit comments

Comments
 (0)