소스 검색

Fix importing Trello board

Attribute correct members to their comments
Ghassen Rjab 8 년 전
부모
커밋
8b6b065462
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      models/import.js

+ 2 - 2
models/import.js

@@ -285,7 +285,7 @@ class TrelloCreator {
             createdAt: this._now(comment.date),
             text: comment.data.text,
             // we attribute the comment to the original author, default to current user
-            userId: this._user(comment.memberCreator.id),
+            userId: this._user(comment.idMemberCreator),
           };
           // dateLastActivity will be set from activity insert, no need to
           // update it ourselves
@@ -298,7 +298,7 @@ class TrelloCreator {
             createdAt: this._now(commentToCreate.createdAt),
             // we attribute the addComment (not the import)
             // to the original author - it is needed by some UI elements.
-            userId: this._user(commentToCreate.userId),
+            userId: commentToCreate.userId,
           });
         });
       }