mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
correction
This commit is contained in:
parent
1cb8a6e7fe
commit
6b2d022a93
1 changed files with 1 additions and 1 deletions
|
|
@ -730,7 +730,7 @@ if (Meteor.isServer) {
|
|||
const name = req.body.label.name;
|
||||
const labelId = Random.id(6);
|
||||
if (!board.getLabel(name, color)) {
|
||||
Boards.direct.update({ _id: id }, { $push: { labels: { "_id": labelId, "name": name, "color": color } } });
|
||||
Boards.direct.update({ _id: id }, { $push: { labels: { _id: labelId, name, color } } });
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: labelId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue