summaryrefslogtreecommitdiffstats
path: root/models/trelloCreator.js
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2018-02-26 03:18:26 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2018-02-26 03:18:26 +0100
commit951a0db380d60f3d948ae38d50b85a54983a51de (patch)
tree953a04821ada18a13fc24f1cc982b52a2801ba1a /models/trelloCreator.js
parentc0d33d97f2c8d4e9371a03d4ad3022df3ed64d3d (diff)
downloadwekan-951a0db380d60f3d948ae38d50b85a54983a51de.tar.gz
wekan-951a0db380d60f3d948ae38d50b85a54983a51de.tar.bz2
wekan-951a0db380d60f3d948ae38d50b85a54983a51de.zip
Fix lint errors related to trello creator
Diffstat (limited to 'models/trelloCreator.js')
-rw-r--r--models/trelloCreator.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index 2d85ee71..89e48a16 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -401,19 +401,19 @@ export class TrelloCreator {
}
createSwimlanes(boardId) {
- const swimlaneToCreate = {
- archived: false,
- boardId,
- // We are being defensing here by providing a default date (now) if the
- // creation date wasn't found on the action log. This happen on old
- // Wekan boards (eg from 2013) that didn't log the 'createList' action
- // we require.
- createdAt: this._now(),
- title: 'Default',
- };
- const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
- Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});
- this.swimlane = swimlaneId;
+ const swimlaneToCreate = {
+ archived: false,
+ boardId,
+ // We are being defensing here by providing a default date (now) if the
+ // creation date wasn't found on the action log. This happen on old
+ // Wekan boards (eg from 2013) that didn't log the 'createList' action
+ // we require.
+ createdAt: this._now(),
+ title: 'Default',
+ };
+ const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
+ Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});
+ this.swimlane = swimlaneId;
}
createChecklists(trelloChecklists) {