소스 검색

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