diff options
author | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-08-31 22:14:57 +0100 |
---|---|---|
committer | Ghassen Rjab <rjab.ghassen@gmail.com> | 2017-08-31 22:14:57 +0100 |
commit | 4ad4c6ea2274919ced917e541120ad50c7512b80 (patch) | |
tree | 03fec9c824517099a2a9213e7aee64b36a865960 /models/wekanCreator.js | |
parent | ad09630d4ef5a759cc975db241c79b6c94c05129 (diff) | |
download | wekan-4ad4c6ea2274919ced917e541120ad50c7512b80.tar.gz wekan-4ad4c6ea2274919ced917e541120ad50c7512b80.tar.bz2 wekan-4ad4c6ea2274919ced917e541120ad50c7512b80.zip |
Assign user to attachment before inserting
Diffstat (limited to 'models/wekanCreator.js')
-rw-r--r-- | models/wekanCreator.js | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |