From 0fec7115451ba3b49442965c8160df4911157601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Sat, 23 Feb 2019 16:36:29 +0100 Subject: Prepare to create card from template --- models/cardComments.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'models/cardComments.js') diff --git a/models/cardComments.js b/models/cardComments.js index 974c5ec9..f29366a5 100644 --- a/models/cardComments.js +++ b/models/cardComments.js @@ -67,6 +67,12 @@ CardComments.allow({ }); CardComments.helpers({ + copy(newCardId) { + this.cardId = newCardId; + this._id = null; + CardComments.insert(this); + }, + user() { return Users.findOne(this.userId); }, -- cgit v1.2.3-1-g7c22