mirror of
https://github.com/wekan/wekan.git
synced 2026-02-24 17:04:07 +01:00
Merge pull request #3121 from marc1006/api_gen
Fix Python API generation
This commit is contained in:
commit
bb08e40ea5
1 changed files with 5 additions and 4 deletions
|
|
@ -1284,16 +1284,17 @@ Cards.mutations({
|
||||||
},
|
},
|
||||||
|
|
||||||
moveOptionalArgs({ boardId, swimlaneId, listId, sort } = {}) {
|
moveOptionalArgs({ boardId, swimlaneId, listId, sort } = {}) {
|
||||||
boardId = boardId ?? this.boardId;
|
boardId = boardId || this.boardId;
|
||||||
swimlaneId = swimlaneId ?? this.swimlaneId;
|
swimlaneId = swimlaneId || this.swimlaneId;
|
||||||
// This should never happen, but there was a bug that was fixed in commit
|
// This should never happen, but there was a bug that was fixed in commit
|
||||||
// ea0239538a68e225c867411a4f3e0d27c158383.
|
// ea0239538a68e225c867411a4f3e0d27c158383.
|
||||||
if (!swimlaneId) {
|
if (!swimlaneId) {
|
||||||
const board = Boards.findOne(boardId);
|
const board = Boards.findOne(boardId);
|
||||||
swimlaneId = board.getDefaultSwimline()._id;
|
swimlaneId = board.getDefaultSwimline()._id;
|
||||||
}
|
}
|
||||||
listId = listId ?? this.listId;
|
listId = listId || this.listId;
|
||||||
sort = sort ?? this.sort;
|
if (sort === undefined || sort === null)
|
||||||
|
sort = this.sort;
|
||||||
return this.move(boardId, swimlaneId, listId, sort);
|
return this.move(boardId, swimlaneId, listId, sort);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue