Browse Source

- Fix migration error "TypeError: Checklists.foreach"

Thanks to Jubi94, kestrelhawk and xet7 !

Fixes #1736,
fixes wekan/wekan-snap#51
Lauri Ojansivu 7 years ago
parent
commit
e044769d85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/migrations.js

+ 1 - 1
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({