summaryrefslogtreecommitdiffstats
path: root/models/import.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-06 09:00:13 +0300
committerLauri Ojansivu <x@xet7.org>2019-04-06 09:00:13 +0300
commitebfc8e5a1bd4cbc5cf6e37a913bc8eb231566050 (patch)
treeab0d1e0f879cb77d0058f472251e23fd21eb89af /models/import.js
parent972b9b6e9169b92c1a88bbc873313d7eead42f30 (diff)
downloadwekan-ebfc8e5a1bd4cbc5cf6e37a913bc8eb231566050.tar.gz
wekan-ebfc8e5a1bd4cbc5cf6e37a913bc8eb231566050.tar.bz2
wekan-ebfc8e5a1bd4cbc5cf6e37a913bc8eb231566050.zip
Fix lint errors.
Thanks to xet7 !
Diffstat (limited to 'models/import.js')
-rw-r--r--models/import.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/models/import.js b/models/import.js
index f7099282..ddc1a1d0 100644
--- a/models/import.js
+++ b/models/import.js
@@ -31,18 +31,17 @@ Meteor.methods({
});
Meteor.methods({
- cloneBoard(sourceBoardId,currentBoardId) {
+ cloneBoard(sourceBoardId, currentBoardId) {
check(sourceBoardId, String);
check(currentBoardId, Match.Maybe(String));
const exporter = new Exporter(sourceBoardId);
- let data = exporter.build();
- let addData = {};
+ const data = exporter.build();
+ const addData = {};
addData.membersMapping = wekanMembersMapper.getMembersToMap(data);
const creator = new WekanCreator(addData);
- data.title = data.title + " - " + TAPi18n.__('copy-tag');
+ data.title = `${data.title } - ${ TAPi18n.__('copy-tag')}`;
return creator.create(data, currentBoardId);
},
});
-