Apply user when redogradation
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2023-03-06 15:55:30 +01:00
parent 18225ca1d6
commit 2129ba46ee
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export class Grade {
}
async redoGradation() {
const res = await fetch(`api/works/${this.id_work}/grades/${this.id}/traces`, {
const res = await fetch(this.id_user?`api/users/${this.id_user}/works/${this.id_work}/grades/${this.id}/traces`:`api/works/${this.id_work}/grades/${this.id}/traces`, {
method: 'POST',
headers: {'Accept': 'application/json'},
});