mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
- Fix migration error "TypeError: Checklists.foreach"
Thanks to Jubi94, kestrelhawk and xet7 ! Fixes #1736, fixes wekan/wekan-snap#51
This commit is contained in:
parent
a86a8eff2d
commit
e044769d85
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue