Commit 662566e7 authored by Fjen Undso's avatar Fjen Undso
Browse files

fix vote request reset

parent e846bef3
......@@ -49,6 +49,7 @@ public class VoteController extends Controller {
for (Vote v : sessionvotes) {
if (v.type == Vote.Type.REQUEST && (v.owner == vote.owner || vote.owner == session.owner)) {
session.deleteVote(v);
v.delete();
}
}
} else {
......
......@@ -90,7 +90,6 @@ public class Session extends Model {
public void deleteVote(Vote v) {
this.votes.remove(v);
v.delete();
}
public void addVote(Vote v) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment