From 1912feb9cfe51deaedbe3abe9239fd1bcf2b37f8 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Wed, 25 Oct 2023 20:28:48 +0200 Subject: Make voting work --- backend/Elements.Backend/Controllers/SuggestionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/Elements.Backend/Controllers') diff --git a/backend/Elements.Backend/Controllers/SuggestionController.cs b/backend/Elements.Backend/Controllers/SuggestionController.cs index 040b19b..932e774 100644 --- a/backend/Elements.Backend/Controllers/SuggestionController.cs +++ b/backend/Elements.Backend/Controllers/SuggestionController.cs @@ -123,7 +123,7 @@ public class SuggestionController : ControllerBase Icon = ConvertBitmapToPng(Convert.FromBase64String(suggestion.IconBitmap)), FirstElementId = suggestion.FirstElementId, SecondElementId = suggestion.SecondElementId, - VotingEnd = DateTime.UtcNow + TimeSpan.FromSeconds(10), + VotingEnd = DateTime.UtcNow + TimeSpan.FromMinutes(5), UserId = int.Parse(currentUserId) }; await _dbContext.Suggestions.AddAsync(newSuggestion); -- cgit v1.2.3