summaryrefslogtreecommitdiff
path: root/backend/Elements.Backend/Controllers
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-25 20:28:48 +0200
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-25 20:34:22 +0200
commit1912feb9cfe51deaedbe3abe9239fd1bcf2b37f8 (patch)
tree8d7f0e448c0ba1e6e4980e8d99b136ca14391b95 /backend/Elements.Backend/Controllers
parent2e86ace4593d32a2cb1a4be9a758911ff25e4a89 (diff)
Make voting work
Diffstat (limited to 'backend/Elements.Backend/Controllers')
-rw-r--r--backend/Elements.Backend/Controllers/SuggestionController.cs2
1 files changed, 1 insertions, 1 deletions
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);