mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04: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')) {
|
||||
Checklists.direct.update(
|
||||
checklist._id,
|
||||
{
|
||||
$set: {
|
||||
sort: index,
|
||||
newItemIndex: checklist.items.length,
|
||||
},
|
||||
},
|
||||
{ $set: { sort: index } },
|
||||
noValidate
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue