Apply user when redogradation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
18225ca1d6
commit
2129ba46ee
@ -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'},
|
||||
});
|
||||
|
Reference in New Issue
Block a user