summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-07-06 14:32:57 +0300
committerLauri Ojansivu <x@xet7.org>2018-07-06 14:32:57 +0300
commita41190cdf024df65ad1c9931b3065c6ababeaf25 (patch)
treed89e6de1c94665c1fe3dbb0f035aa417cbb837d6
parent9a053164acac9943bf4773d5f3b8c13e2c0fdf50 (diff)
downloadwekan-a41190cdf024df65ad1c9931b3065c6ababeaf25.tar.gz
wekan-a41190cdf024df65ad1c9931b3065c6ababeaf25.tar.bz2
wekan-a41190cdf024df65ad1c9931b3065c6ababeaf25.zip
- Fix: Boards.forEach is not function.
Thanks to xet7 !
-rw-r--r--server/migrations.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/migrations.js b/server/migrations.js
index ae9cb8da..d0e63388 100644
--- a/server/migrations.js
+++ b/server/migrations.js
@@ -153,7 +153,7 @@ Migrations.add('add-sort-checklists', () => {
});
Migrations.add('add-swimlanes', () => {
- Boards.forEach((board) => {
+ Boards.find().forEach((board) => {
const swimlaneId = board.getDefaultSwimline()._id;
Cards.find({ boardId: board._id }).forEach((card) => {
if (!card.hasOwnProperty('swimlaneId')) {