浏览代码

- Fix migration error "TypeError: Checklists.foreach"

Thanks to Jubi94, kestrelhawk and xet7 !

Fixes #1736,
fixes wekan/wekan-snap#51
Lauri Ojansivu 7 年之前
父节点
当前提交
e044769d85
共有 1 个文件被更改,包括 1 次插入1 次删除
  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({