diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-06-28 13:48:36 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-06-28 13:48:36 +0300 |
commit | e044769d854dbbce18f2c6af3adbdf6869156694 (patch) | |
tree | 847d8b0277e9b7d89e4800819ce4a7fc69b4e3f9 | |
parent | a86a8eff2dc1c1862f9ffd53fe722b01faaba8c0 (diff) | |
download | wekan-e044769d854dbbce18f2c6af3adbdf6869156694.tar.gz wekan-e044769d854dbbce18f2c6af3adbdf6869156694.tar.bz2 wekan-e044769d854dbbce18f2c6af3adbdf6869156694.zip |
- Fix migration error "TypeError: Checklists.foreach"
Thanks to Jubi94, kestrelhawk and xet7 !
Fixes #1736,
fixes wekan/wekan-snap#51
-rw-r--r-- | server/migrations.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/migrations.js b/server/migrations.js index 91ab4cb9..a1a5c65a 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -189,7 +189,7 @@ Migrations.add('add-views', () => { }); Migrations.add('add-checklist-items', () => { - Checklists.forEach((checklist) => { + Checklists.find().forEach((checklist) => { // Create new items _.sortBy(checklist.items, 'sort').forEach((item, index) => { ChecklistItems.direct.insert({ |