summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-02-26 16:11:03 +0200
committerLauri Ojansivu <x@xet7.org>2018-02-26 16:11:03 +0200
commit1efa66b58c2703772e39d0fca01dcb7f2f14a44c (patch)
tree29a608a9c4e929385323c1477ba9d74d3b37bb2e /models
parent5bdb392258bd3d3863699e5bf05b64b70f222621 (diff)
parentdc8c9053c2d454f14983903880fbf481eab2be20 (diff)
downloadwekan-1efa66b58c2703772e39d0fca01dcb7f2f14a44c.tar.gz
wekan-1efa66b58c2703772e39d0fca01dcb7f2f14a44c.tar.bz2
wekan-1efa66b58c2703772e39d0fca01dcb7f2f14a44c.zip
Merge branch 'GhassenRjab-feature/fix-lint' into devel
Diffstat (limited to 'models')
-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) {