summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/cards/attachments.js3
-rw-r--r--models/trelloCreator.js1
-rw-r--r--models/wekanCreator.js2
3 files changed, 5 insertions, 1 deletions
diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js
index 4e3e0b19..95cb9f55 100644
--- a/client/components/cards/attachments.js
+++ b/client/components/cards/attachments.js
@@ -62,7 +62,7 @@ Template.cardAttachmentsPopup.events({
const file = new FS.File(f);
file.boardId = card.boardId;
file.cardId = card._id;
-
+ file.userId = Meteor.userId();
Attachments.insert(file);
Popup.close();
});
@@ -109,6 +109,7 @@ Template.previewClipboardImagePopup.events({
file.updatedAt(new Date());
file.boardId = card.boardId;
file.cardId = card._id;
+ file.userId = Meteor.userId();
Attachments.insert(file);
pastedResults = null;
$(document.body).pasteImageReader(() => {});
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index 60207546..44030ea5 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -322,6 +322,7 @@ export class TrelloCreator {
file.attachData(att.url, function (error) {
file.boardId = boardId;
file.cardId = cardId;
+ file.userId = this._user(att.idMemberCreator);
if (error) {
throw(error);
} else {
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index 1a02339a..d96ad2ca 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -312,6 +312,7 @@ export class WekanCreator {
file.attachData(att.url, function (error) {
file.boardId = boardId;
file.cardId = cardId;
+ file.userId = this._user(att.userId);
if (error) {
throw(error);
} else {
@@ -330,6 +331,7 @@ export class WekanCreator {
file.name(att.name);
file.boardId = boardId;
file.cardId = cardId;
+ file.userId = this._user(att.userId);
if (error) {
throw(error);
} else {