Fix deleting task relations

See vikunja/api/commit/eb3a94567817b78a3325a937cedce237837e3785
This commit is contained in:
kolaente 2021-02-18 23:36:06 +01:00
parent 1fb52fb750
commit 08dcc77228
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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}',
}) })
} }