summaryrefslogtreecommitdiffstats
path: root/models/import.js
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-06-22 22:09:40 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-06-22 22:09:40 +0100
commit8b6b0654622d95e3bb499edfc159eb02f206369e (patch)
tree53cd4326732b1bbac29d0389fdfea4fbb6091a15 /models/import.js
parent04577cfdf38677b8ee0aa30beb3c79dafecad5f6 (diff)
downloadwekan-8b6b0654622d95e3bb499edfc159eb02f206369e.tar.gz
wekan-8b6b0654622d95e3bb499edfc159eb02f206369e.tar.bz2
wekan-8b6b0654622d95e3bb499edfc159eb02f206369e.zip
Fix importing Trello board
Attribute correct members to their comments
Diffstat (limited to 'models/import.js')
-rw-r--r--models/import.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/import.js b/models/import.js
index 4e78c53a..709d1699 100644
--- a/models/import.js
+++ b/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,
});
});
}