hopfenspace / MateBot

Micro service providing an API for MateBot clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not allow creating multiple identical polls

CrsiX opened this issue · comments

commented

Currently, a user is able to create two identical polls at the same time, i.e. repeating the request to create a single poll two times results in two different polls with the very same attributes (except for timestamps & votes). This should be avoided, so that the first poll must be closed before a second one with identical values can be opened.

It's up for discussion if this behavior is desired for other data structures like communisms or refunds, too.