- Fix migration error "TypeError: Checklists.foreach"

Thanks to Jubi94, kestrelhawk and xet7 !

Fixes #1736,
fixes wekan/wekan-snap#51
This commit is contained in:
Lauri Ojansivu 2018-06-28 13:48:36 +03:00
parent a86a8eff2d
commit e044769d85

View file

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