mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Remove newItemIndex of Checklist Collection from migration script
We no longer need this field
This commit is contained in:
parent
5f697eac05
commit
6e5d9f9bb6
1 changed files with 1 additions and 6 deletions
|
|
@ -136,12 +136,7 @@ Migrations.add('add-sort-checklists', () => {
|
||||||
if (!checklist.hasOwnProperty('sort')) {
|
if (!checklist.hasOwnProperty('sort')) {
|
||||||
Checklists.direct.update(
|
Checklists.direct.update(
|
||||||
checklist._id,
|
checklist._id,
|
||||||
{
|
{ $set: { sort: index } },
|
||||||
$set: {
|
|
||||||
sort: index,
|
|
||||||
newItemIndex: checklist.items.length,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
noValidate
|
noValidate
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue