mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01: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', () => {
|
Migrations.add('add-checklist-items', () => {
|
||||||
Checklists.forEach((checklist) => {
|
Checklists.find().forEach((checklist) => {
|
||||||
// Create new items
|
// Create new items
|
||||||
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
_.sortBy(checklist.items, 'sort').forEach((item, index) => {
|
||||||
ChecklistItems.direct.insert({
|
ChecklistItems.direct.insert({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue