From 6b2d022a93114e39b26396aeb21b68a51551da84 Mon Sep 17 00:00:00 2001 From: "NET\\faguet" Date: Mon, 7 May 2018 14:27:07 +0200 Subject: correction --- models/boards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/boards.js b/models/boards.js index da50adc7..c863c5ce 100644 --- a/models/boards.js +++ b/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, -- cgit v1.2.3-1-g7c22