summaryrefslogtreecommitdiffstats
path: root/models/trelloCreator.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-02-27 08:43:24 +0200
committerLauri Ojansivu <x@xet7.org>2018-02-27 08:43:24 +0200
commite44c46bcd2513440f70476b7299ae0f830e7c619 (patch)
tree227773a9c62fc5c08dbed67b2102c178d1dbca65 /models/trelloCreator.js
parent57cf86a79fe56e89516e9e08746fce217f1c4c98 (diff)
parent843381a36c75abaf46d87eec169863a9e80d968e (diff)
downloadwekan-e44c46bcd2513440f70476b7299ae0f830e7c619.tar.gz
wekan-e44c46bcd2513440f70476b7299ae0f830e7c619.tar.bz2
wekan-e44c46bcd2513440f70476b7299ae0f830e7c619.zip
Merge branch 'devel'
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) {