summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorNET\faguet <guillaume.faguet@avisto.com>2018-05-07 14:27:07 +0200
committerNET\faguet <guillaume.faguet@avisto.com>2018-05-07 14:27:07 +0200
commit6b2d022a93114e39b26396aeb21b68a51551da84 (patch)
tree176eb6e9ee87d3fea208d87fa9e9e043ec96c9a7 /models
parent1cb8a6e7fe3c3ba4bf2bc5f5a576d2ed46750fb0 (diff)
downloadwekan-6b2d022a93114e39b26396aeb21b68a51551da84.tar.gz
wekan-6b2d022a93114e39b26396aeb21b68a51551da84.tar.bz2
wekan-6b2d022a93114e39b26396aeb21b68a51551da84.zip
correction
Diffstat (limited to 'models')
-rw-r--r--models/boards.js2
1 files changed, 1 insertions, 1 deletions
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,