mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:02:25 -05:00 
			
		
		
		
	[bugfix] actually decrement votes during poll vote delete ... (#2344)
This commit is contained in:
		
					parent
					
						
							
								34d0879c16
							
						
					
				
			
			
				commit
				
					
						b1c65ed9ac
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -478,7 +478,7 @@ func (p *pollDB) DeletePollVoteBy(ctx context.Context, pollID string, accountID | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		// Decrement votes for choices. | 		// Decrement votes for choices. | ||||||
| 		poll.IncrementVotes(choices) | 		poll.DecrementVotes(choices) | ||||||
| 
 | 
 | ||||||
| 		// Finally, update the poll entry. | 		// Finally, update the poll entry. | ||||||
| 		_, err := tx.NewUpdate(). | 		_, err := tx.NewUpdate(). | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue