Fix deleting task relations
See vikunja/api/commit/eb3a94567817b78a3325a937cedce237837e3785
This commit is contained in:
parent
1fb52fb750
commit
08dcc77228
2 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeTaskRelation() {
|
removeTaskRelation() {
|
||||||
let rel = new TaskRelationModel({
|
const rel = new TaskRelationModel({
|
||||||
relationKind: this.relationToDelete.relationKind,
|
relationKind: this.relationToDelete.relationKind,
|
||||||
taskId: this.taskId,
|
taskId: this.taskId,
|
||||||
otherTaskId: this.relationToDelete.otherTaskId,
|
otherTaskId: this.relationToDelete.otherTaskId,
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default class TaskRelationService extends AbstractService {
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
create: '/tasks/{taskId}/relations',
|
create: '/tasks/{taskId}/relations',
|
||||||
delete: '/tasks/{taskId}/relations',
|
delete: '/tasks/{taskId}/relations/{relationKind}/{otherTaskId}',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue