mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -47,7 +47,12 @@ module.exports = {
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['position', 'name']);
|
||||
board = await sails.helpers.boards.updateOne(board, values, this.req);
|
||||
|
||||
board = await sails.helpers.boards.updateOne.with({
|
||||
values,
|
||||
record: board,
|
||||
request: this.req,
|
||||
});
|
||||
|
||||
if (!board) {
|
||||
throw Errors.BOARD_NOT_FOUND;
|
||||
|
||||
Reference in New Issue
Block a user