소스 검색

Add idMemberCreator to Trello attachment

We need this field to attribute attachment to the user who uploaded it
Ghassen Rjab 7 년 전
부모
커밋
bc4ea6fd9a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      models/trelloCreator.js

+ 2 - 0
models/trelloCreator.js

@@ -456,6 +456,8 @@ export class TrelloCreator {
         // In that case Trello still reports its addition, but removes its 'url' field.
         // So we test for that
         const trelloAttachment = action.data.attachment;
+        // We need the idMemberCreator
+        trelloAttachment.idMemberCreator = action.idMemberCreator;
         if(trelloAttachment.url) {
           // we cannot actually create the Wekan attachment, because we don't yet
           // have the cards to attach it to, so we store it in the instance variable.