forked from rDrama/rDrama
Fix 62ffe2d628: returning document, must send 200.
parent
62ffe2d628
commit
220409c8fb
|
@ -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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue