correction

This commit is contained in:
NET\faguet 2018-05-07 14:27:07 +02:00
parent 1cb8a6e7fe
commit 6b2d022a93

View file

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