mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -56,7 +56,14 @@ module.exports = {
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['name', 'color']);
|
||||
const label = await sails.helpers.labels.createOne(values, board, this.req);
|
||||
|
||||
const label = await sails.helpers.labels.createOne.with({
|
||||
values: {
|
||||
...values,
|
||||
board,
|
||||
},
|
||||
request: this.req,
|
||||
});
|
||||
|
||||
return {
|
||||
item: label,
|
||||
|
||||
Reference in New Issue
Block a user