|
|
|
@ -1892,7 +1892,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
// console.log(poll_question_id)
|
|
|
|
|
var thiss = this;
|
|
|
|
|
if (bool === true) {
|
|
|
|
|
var url = `/poll_questions/${poll_question_id}/up_down.json`;
|
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
opr: "up",
|
|
|
|
|
}).then((result) => {
|
|
|
|
@ -1909,7 +1909,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
var url = `/poll_questions/${poll_question_id}/up_down.json`;
|
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
opr: "down",
|
|
|
|
|
}).then((result) => {
|
|
|
|
|