Merge pull request #5129 from tsiegleauq/assignment-order

Remove sorting poll option by weight
This commit is contained in:
Emanuel Schütze 2019-11-13 14:48:03 +01:00 committed by GitHub
commit 4451fe979e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,8 +219,6 @@ export class AssignmentRepositoryService extends BaseIsAgendaItemAndListOfSpeake
* @param originalPoll the original poll
*/
public async updateVotes(poll: Partial<AssignmentPoll>, originalPoll: ViewAssignmentPoll): Promise<void> {
poll.options.sort((a, b) => a.weight - b.weight);
const votes = poll.options.map(option => {
const voteObject = {};
for (const vote of option.votes) {