refactor: handle api models identifiers

This commit is contained in:
2022-10-10 10:29:25 +02:00
parent baccbf8d56
commit 09ff7433ed
9 changed files with 32 additions and 27 deletions

View File

@@ -130,8 +130,8 @@ export default class Login extends Vue {
responsesFormatted.push({
score: value.score ? value.score : 0,
comment: value.comment,
questionId: Number.parseInt(key.replace("http://localhost:8080/questions/", "")) // FIXME use correct url when score will be a REST ressource
})
questionId: key
});
});
this.saving = true;