forked from rDrama/rDrama
1
0
Fork 0

Fix 62ffe2d628: returning document, must send 200.

master
Snakes 2022-11-20 20:11:17 -05:00
parent 62ffe2d628
commit 220409c8fb
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 3 additions and 3 deletions

View File

@ -124,8 +124,8 @@ function bet_vote(t, oid) {
var scoretext = document.getElementById('option-' + oid);
var score = Number(scoretext.textContent);
scoretext.textContent = score + 1;
document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200;
document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200;
}
);
}

View File

@ -49,7 +49,7 @@ def vote_option(option_id, v):
elif existing and not option.exclusive:
g.db.delete(existing)
return {"message": "Bet successful!"}, 204
return {"message": "Bet successful!"}, 200
@app.get("/votes/post/option/<option_id>")
@auth_required