Browse Source

correction

NET\faguet 7 years ago
parent
commit
6b2d022a93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/boards.js

+ 1 - 1
models/boards.js

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